-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add smoke-build CI workflow #169
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
b8bcf32
Simplify/fix dart formatting in CI
IanVS c91f622
Add build workflow
IanVS 3cb7d84
Specify androidapi for gomobile
IanVS a4703d1
Add ios build step to ci
IanVS 3e58c41
Add fastlane match token
IanVS da64471
Use fastlane to build
IanVS 8111303
Avoid incrementing version number
IanVS c886cfc
Rename workflow
IanVS 9d5cda7
Fix rebase error
IanVS 0e9dae0
Build ios debug app, do not sign
IanVS b82ef08
Skip signing
IanVS a88c845
Remove setup_ci
IanVS 5c0f98a
Just manually xcodebuild
IanVS 71e6734
Remove checkBuild lane
IanVS File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,74 @@ | ||
# This workflow builds the iOS and Android apps, just to check they build without error | ||
|
||
name: Smoke build | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
build-android: | ||
name: Android | ||
runs-on: macos-latest | ||
steps: | ||
- name: Set up Go 1.22 | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.22" | ||
|
||
- uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '17' | ||
|
||
- name: Install flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: '3.24.1' | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: install dependencies | ||
env: | ||
TOKEN: ${{ secrets.MACHINE_USER_PAT }} | ||
run: | | ||
go install golang.org/x/mobile/cmd/gomobile@latest | ||
gomobile init | ||
flutter pub get | ||
touch env.sh | ||
|
||
- name: Build Android debug | ||
run: flutter build appbundle --debug | ||
|
||
build-ios: | ||
name: iOS | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Set up Go 1.22 | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.22" | ||
|
||
- name: Install flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: '3.24.1' | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: install dependencies | ||
run: | | ||
go install golang.org/x/mobile/cmd/gomobile@latest | ||
gomobile init | ||
flutter pub get | ||
touch env.sh | ||
|
||
- name: Build iOS | ||
run: | | ||
cd ios | ||
pod install | ||
xcodebuild -workspace Runner.xcworkspace -scheme Runner -configuration Release clean archive CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO -archivePath "build/MobileNebula.xcarchive" |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is dumb but might as well keep it consistent with
--target