Skip to content

Commit

Permalink
Updates CI settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
zonble committed Sep 26, 2024
1 parent c9ecc7b commit 465f352
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ jobs:
TARGET: linux
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v1
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: "12.x"
distribution: "oracle"
java-version: "17"
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ matrix.version }}
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/ci_spm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: SPM

on: [push, pull_request]

jobs:
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: "oracle"
java-version: "17"
- uses: subosito/flutter-action@v2
with:
# flutter-version: 3.26.x
channel: "main" # optional, default to: 'stable'
- name: Enable SPM
run: |
flutter config --enable-swift-package-manager
- name: Doctor
# Run doctor, for ease of debugging any issues.
run: flutter doctor -v
- name: Install dependencies
run: flutter packages get
working-directory: example
- name: Cleans up macOS project
run: |
pod deintegrate
echo "#include \"Generated.xcconfig\""\n" > Flutter/Debug.xcconfig
echo "#include \"Generated.xcconfig\""\n" > Flutter/Release.xcconfig
working-directory: example/macos
- name: Build macOS
run: flutter build macos
working-directory: example

0 comments on commit 465f352

Please sign in to comment.