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 name: Build app
needs: needs:
- analyze-test - analyze-test
runs-on: macos-latest runs-on: ${{ matrix.runner }}
strategy: strategy:
matrix: matrix:
os: include:
- android - os: android
- ios runner: ubuntu-latest
- os: ios
runner: macos-latest
environment: dev environment: dev
steps: steps:
@@ -44,8 +46,8 @@ jobs:
PLAY_STORE_KEY_INFO_BASE64: ${{ secrets.PLAY_STORE_KEY_INFO_BASE64 }} PLAY_STORE_KEY_INFO_BASE64: ${{ secrets.PLAY_STORE_KEY_INFO_BASE64 }}
run: | run: |
# echo "$GOOGLE_SERVICES_JSON" > app/google-services.json # echo "$GOOGLE_SERVICES_JSON" > app/google-services.json
echo "$PLAY_STORE_UPLOAD_KEY_BASE64" | base64 --decode --output app/keystore.jks echo "$PLAY_STORE_UPLOAD_KEY_BASE64" | base64 --decode > app/keystore.jks
echo "$PLAY_STORE_KEY_INFO_BASE64" | base64 --decode --output key.properties echo "$PLAY_STORE_KEY_INFO_BASE64" | base64 --decode > key.properties
working-directory: ${{ matrix.os }} working-directory: ${{ matrix.os }}
- name: Setup Java - name: Setup Java
+8 -6
View File
@@ -15,12 +15,14 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v') if: startsWith(github.ref, 'refs/tags/v')
needs: needs:
- analyze-test - analyze-test
runs-on: macos-latest runs-on: ${{ matrix.runner }}
strategy: strategy:
matrix: matrix:
os: include:
- android - os: android
- ios runner: ubuntu-latest
- os: ios
runner: macos-latest
environment: prod environment: prod
steps: steps:
@@ -42,8 +44,8 @@ jobs:
PLAY_STORE_UPLOAD_KEY_BASE64: ${{ secrets.PLAY_STORE_UPLOAD_KEY_BASE64 }} PLAY_STORE_UPLOAD_KEY_BASE64: ${{ secrets.PLAY_STORE_UPLOAD_KEY_BASE64 }}
PLAY_STORE_KEY_INFO_BASE64: ${{ secrets.PLAY_STORE_KEY_INFO_BASE64 }} PLAY_STORE_KEY_INFO_BASE64: ${{ secrets.PLAY_STORE_KEY_INFO_BASE64 }}
run: | run: |
echo "$PLAY_STORE_UPLOAD_KEY_BASE64" | base64 --decode --output app/keystore.jks echo "$PLAY_STORE_UPLOAD_KEY_BASE64" | base64 --decode > app/keystore.jks
echo "$PLAY_STORE_KEY_INFO_BASE64" | base64 --decode --output key.properties echo "$PLAY_STORE_KEY_INFO_BASE64" | base64 --decode > key.properties
working-directory: ${{ matrix.os }} working-directory: ${{ matrix.os }}
- name: Setup Java - name: Setup Java