Skip to content
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 iOS build step #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,48 @@ jobs:
files: |
gh-release/*.apk

build-ios:
name: Build iOS
runs-on: macos-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '${{ env.FLUTTER_VERSION }}'

- name: Install dependencies
run: flutter pub get

- name: Build IPA
run: flutter build ipa

- name: List files
run: ls -R build/

# - name: Upload artifact
# uses: actions/upload-artifact@v2
# with:
# name: URSADriverStation_android
# path: build/app/outputs/flutter-apk/*.apk

# - name: Rename artifact
# if: startsWith(github.ref, 'refs/tags/v')
# run: |
# ls -R build/app/outputs/flutter-apk
# mkdir gh-release
# cp build/app/outputs/flutter-apk/app-release.apk gh-release/URSADriverStation-${GITHUB_REF#refs/tags/v}_android.apk

# - name: Upload release artifact
# uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/v')
# with:
# files: |
# gh-release/*.apk

build-linux:
name: Build Linux
runs-on: ubuntu-latest
Expand Down