-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
139 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: "Build Android" | ||
description: "Build Android" | ||
inputs: | ||
type: | ||
description: 'Build type (should be debug or release)' | ||
required: true | ||
google_services_json: | ||
description: 'Base64 encoded google-services.json' | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Decode and save google-services.json | ||
shell: bash | ||
run: echo "${{ inputs.google_services_json }}" | base64 -d > ./android/app/google-services.json | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- name: Build ${{ inputs.type }} | ||
shell: bash | ||
run: bundle exec fastlane android build_${{ inputs.type }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: "Prepare macOS runner" | ||
description: "Prepare macOS runner" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.1.1" # TODO: keep this somewhere where it's easy to change | ||
|
||
- name: Install gems | ||
shell: bash | ||
run: bundle install | ||
|
||
- name: Install FVM | ||
shell: bash | ||
run: | | ||
brew tap leoafarias/fvm | ||
brew install fvm | ||
- name: Set up FVM | ||
shell: bash | ||
run: fvm use |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: "Prepare Ubuntu runner" | ||
description: "Prepare Ubuntu runner" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.1.1" # TODO: keep this somewhere where it's easy to change | ||
|
||
- name: Install gems | ||
shell: bash | ||
run: bundle install | ||
|
||
- name: Install FVM | ||
shell: bash | ||
run: curl -fsSL https://fvm.app/install.sh | bash | ||
|
||
- name: Set up FVM | ||
shell: bash | ||
run: fvm use |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: default-workflow | ||
on: [push] | ||
# on: | ||
# push: | ||
# branches: | ||
# - main | ||
jobs: | ||
test: | ||
name: Run tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Prepare runner | ||
uses: ./.github/actions/prepare-ubuntu-runner | ||
|
||
- name: Run virtual machine tests | ||
run: bundle exec fastlane run_vm_tests | ||
|
||
build_android: | ||
name: Build Android debug | ||
runs-on: ubuntu-latest | ||
needs: test | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Prepare runner | ||
uses: ./.github/actions/prepare-ubuntu-runner | ||
|
||
- name: Build debug | ||
uses: ./.github/actions/build-android | ||
with: | ||
type: debug | ||
google_services_json: ${{ secrets.GOOGLE_SERVICES_JSON }} | ||
|
||
build_ios: | ||
name: Build iOS debug | ||
runs-on: macos-latest | ||
needs: test | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Prepare runner | ||
uses: ./.github/actions/prepare-macos-runner | ||
|
||
- name: Decode and save GoogleServices-Info.plist | ||
run: echo "${{ secrets.GOOGLESERVICE_INFO_PLIST }}" | base64 -d > ./ios/Runner/GoogleService-Info.plist | ||
|
||
- name: Build debug | ||
run: bundle exec fastlane ios build_debug | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.