-
Notifications
You must be signed in to change notification settings - Fork 47
61 lines (59 loc) · 2.27 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: subosito/flutter-action@v2
with:
channel: stable
- name: Find changed packages
run: |
CHANGED_PACKAGES=$(./tools/tools_runner.sh list \
--run-on-changed-packages \
--base-sha=$(git rev-parse HEAD^))
if [[ ! -z $CHANGED_PACKAGES ]]; then
echo $CHANGED_PACKAGES
echo "HAS_CHANGED_PACKAGES=true" >> $GITHUB_ENV
fi
- name: Install Tizen Studio
if: ${{ env.HAS_CHANGED_PACKAGES == 'true' }}
run: |
sudo apt install -y libncurses5 python2.7 libpython2.7 gettext \
libkf5itemmodels5 libkf5kiowidgets5 libkchart2
curl https://download.tizen.org/sdk/Installer/tizen-studio_5.6/web-cli_Tizen_Studio_5.6_ubuntu-64.bin -o install.bin
chmod a+x install.bin
./install.bin --accept-license $HOME/tizen-studio
rm install.bin
- name: Install Tizen Studio packages
if: ${{ env.HAS_CHANGED_PACKAGES == 'true' }}
run: |
$HOME/tizen-studio/package-manager/package-manager-cli.bin install \
NativeToolchain-Gcc-9.2 \
IOT-Headed-6.0-NativeAppDevelopment-CLI \
IOT-Headed-6.5-NativeAppDevelopment-CLI
- name: Create a Tizen certificate profile
if: ${{ env.HAS_CHANGED_PACKAGES == 'true' }}
run: |
export PATH=$PATH:$HOME/tizen-studio/tools/ide/bin
tizen certificate -a tizen -p tizen -f tizen
tizen security-profiles add \
-n tizen \
-a $HOME/tizen-studio-data/keystore/author/tizen.p12 \
-p tizen
- name: Install flutter-tizen
if: ${{ env.HAS_CHANGED_PACKAGES == 'true' }}
uses: actions/checkout@v3
with:
repository: flutter-tizen/flutter-tizen
path: flutter-tizen
- name: Build examples of changed packages
if: ${{ env.HAS_CHANGED_PACKAGES == 'true' }}
run: |
export PATH=`pwd`/flutter-tizen/bin:$PATH
./tools/tools_runner.sh build-examples \
--run-on-changed-packages \
--base-sha=$(git rev-parse HEAD^)