Experiment with specific runner per OS

This commit is contained in:
Nguyen Thai
2022-09-30 10:55:16 +07:00
committed by Dat H. Pham
parent 796a0fdba7
commit 09f5e3458e
2 changed files with 16 additions and 12 deletions
+8 -6
View File
@@ -15,12 +15,14 @@ jobs:
name: Build app
needs:
- analyze-test
runs-on: macos-latest
runs-on: ${{ matrix.runner }}
strategy:
matrix:
os:
- android
- ios
include:
- os: android
runner: ubuntu-latest
- os: ios
runner: macos-latest
environment: dev
steps:
@@ -44,8 +46,8 @@ jobs:
PLAY_STORE_KEY_INFO_BASE64: ${{ secrets.PLAY_STORE_KEY_INFO_BASE64 }}
run: |
# echo "$GOOGLE_SERVICES_JSON" > app/google-services.json
echo "$PLAY_STORE_UPLOAD_KEY_BASE64" | base64 --decode --output app/keystore.jks
echo "$PLAY_STORE_KEY_INFO_BASE64" | base64 --decode --output key.properties
echo "$PLAY_STORE_UPLOAD_KEY_BASE64" | base64 --decode > app/keystore.jks
echo "$PLAY_STORE_KEY_INFO_BASE64" | base64 --decode > key.properties
working-directory: ${{ matrix.os }}
- name: Setup Java
+8 -6
View File
@@ -15,12 +15,14 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v')
needs:
- analyze-test
runs-on: macos-latest
runs-on: ${{ matrix.runner }}
strategy:
matrix:
os:
- android
- ios
include:
- os: android
runner: ubuntu-latest
- os: ios
runner: macos-latest
environment: prod
steps:
@@ -42,8 +44,8 @@ jobs:
PLAY_STORE_UPLOAD_KEY_BASE64: ${{ secrets.PLAY_STORE_UPLOAD_KEY_BASE64 }}
PLAY_STORE_KEY_INFO_BASE64: ${{ secrets.PLAY_STORE_KEY_INFO_BASE64 }}
run: |
echo "$PLAY_STORE_UPLOAD_KEY_BASE64" | base64 --decode --output app/keystore.jks
echo "$PLAY_STORE_KEY_INFO_BASE64" | base64 --decode --output key.properties
echo "$PLAY_STORE_UPLOAD_KEY_BASE64" | base64 --decode > app/keystore.jks
echo "$PLAY_STORE_KEY_INFO_BASE64" | base64 --decode > key.properties
working-directory: ${{ matrix.os }}
- name: Setup Java