Skip to content

Commit 522cf5a

Browse files
Build debug and release on Github Actions
1 parent 6e5c86c commit 522cf5a

File tree

3 files changed

+45
-6
lines changed

3 files changed

+45
-6
lines changed

.github/workflows/build-2.x-nightly-ios-app.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
build-ios:
1313
runs-on: macos-latest
1414
name: Build Tabris.js Hello World iOS
15+
strategy:
16+
matrix:
17+
build_type: [release, development]
1518
steps:
1619

1720
- name: Checkout
@@ -46,7 +49,11 @@ jobs:
4649
chmod 0600 gha_eclipsesource_match-certificates
4750
ssh-add gha_eclipsesource_match-certificates
4851
49-
fastlane match appstore --readonly --app_identifier com.eclipsesource.hello.world
52+
if [[ "${{ matrix.build_type }}" -eq "release" ]]; then
53+
fastlane match appstore --readonly --app_identifier com.eclipsesource.hello.world
54+
else
55+
fastlane match development --readonly --app_identifier com.eclipsesource.*
56+
fi
5057
5158
ssh-add -D
5259
rm gha_eclipsesource_match-certificates
@@ -63,9 +70,15 @@ jobs:
6370
source ../gha_build-ios_env.sh
6471
export BUILD_NUMBER="$(date +%y%m%d%H%M).2"
6572
echo BUILD_NUMBER $BUILD_NUMBER
66-
tabris build ios --release --device --verbose
73+
74+
if [[ "${{ matrix.build_type }}" -eq "release" ]]; then
75+
tabris build ios --release --device --verbose
76+
else
77+
tabris build ios --debug --device --verbose
78+
fi
6779
6880
- name: AppStore Upload
81+
if: ${{ matrix.build_type == 'release' }}
6982
run: |
7083
source gha_build-ios_env.sh
7184
xcrun altool --upload-app --type ios \

.github/workflows/build-3.x-nightly-ios-app.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
build-ios:
1313
runs-on: macos-latest
1414
name: Build Tabris.js Hello World iOS
15+
strategy:
16+
matrix:
17+
build_type: [release, development]
1518
steps:
1619

1720
- name: Checkout
@@ -46,7 +49,11 @@ jobs:
4649
chmod 0600 gha_eclipsesource_match-certificates
4750
ssh-add gha_eclipsesource_match-certificates
4851
49-
fastlane match appstore --readonly --app_identifier com.eclipsesource.hello.world
52+
if [[ "${{ matrix.build_type }}" -eq "release" ]]; then
53+
fastlane match appstore --readonly --app_identifier com.eclipsesource.hello.world
54+
else
55+
fastlane match development --readonly --app_identifier com.eclipsesource.*
56+
fi
5057
5158
ssh-add -D
5259
rm gha_eclipsesource_match-certificates
@@ -63,9 +70,15 @@ jobs:
6370
source ../gha_build-ios_env.sh
6471
export BUILD_NUMBER="$(date +%y%m%d%H%M).3"
6572
echo BUILD_NUMBER $BUILD_NUMBER
66-
tabris build ios --release --device --verbose
73+
74+
if [[ "${{ matrix.build_type }}" -eq "release" ]]; then
75+
tabris build ios --release --device --verbose
76+
else
77+
tabris build ios --debug --device --verbose
78+
fi
6779
6880
- name: AppStore Upload
81+
if: ${{ matrix.build_type == 'release' }}
6982
run: |
7083
source gha_build-ios_env.sh
7184
xcrun altool --upload-app --type ios \

.github/workflows/build-master-ios-app.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
build-ios:
1313
runs-on: macos-latest
1414
name: Build Tabris.js Hello World iOS
15+
strategy:
16+
matrix:
17+
build_type: [release, development]
1518
steps:
1619

1720
- name: Checkout
@@ -46,7 +49,11 @@ jobs:
4649
chmod 0600 gha_eclipsesource_match-certificates
4750
ssh-add gha_eclipsesource_match-certificates
4851
49-
fastlane match appstore --readonly --app_identifier com.eclipsesource.hello.world
52+
if [[ "${{ matrix.build_type }}" -eq "release" ]]; then
53+
fastlane match appstore --readonly --app_identifier com.eclipsesource.hello.world
54+
else
55+
fastlane match development --readonly --app_identifier com.eclipsesource.*
56+
fi
5057
5158
ssh-add -D
5259
rm gha_eclipsesource_match-certificates
@@ -63,9 +70,15 @@ jobs:
6370
source ../gha_build-ios_env.sh
6471
export BUILD_NUMBER="$(date +%y%m%d%H%M).0"
6572
echo BUILD_NUMBER $BUILD_NUMBER
66-
tabris build ios --release --device --verbose
73+
74+
if [[ "${{ matrix.build_type }}" -eq "release" ]]; then
75+
tabris build ios --release --device --verbose
76+
else
77+
tabris build ios --debug --device --verbose
78+
fi
6779
6880
- name: AppStore Upload
81+
if: ${{ matrix.build_type == 'release' }}
6982
run: |
7083
source gha_build-ios_env.sh
7184
xcrun altool --upload-app --type ios \

0 commit comments

Comments
 (0)