Skip to content

Commit

Permalink
ci: add linux arm64
Browse files Browse the repository at this point in the history
no arm64 in flutter-action
  • Loading branch information
wang-bin committed Jan 21, 2025
1 parent 037796b commit a02b921
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,68 @@ jobs:
name: fvp-example-linux-${{ matrix.channel }}-${{ matrix.version }}
path: example/fvp_example_linux*.tar.xz


Linux-arm64:
if: false
runs-on: ubuntu-24.04-arm
defaults:
run:
working-directory: example
strategy:
fail-fast: false
matrix:
version: ['any']
channel: ['stable']
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ matrix.version }}
channel: ${{ matrix.channel }}
cache: true
- run: |
sudo apt-get update -y
sudo apt-get install -y cmake clang ninja-build libgtk-3-dev libpulse-dev
# - run: flutter config --enable-linux-desktop
- run: flutter doctor --verbose
- run: flutter pub get
- run: flutter build linux --verbose
- run: mv build/linux/arm64/release/bundle .
- run: cmake -E tar Jcvf fvp_example_linux-arm64-${{ matrix.channel }}-${{ matrix.version }}.tar.xz bundle
- name: Upload
uses: actions/upload-artifact@v4
with:
name: fvp-example-linux-arm64-${{ matrix.channel }}-${{ matrix.version }}
path: example/fvp_example_linux*.tar.xz


Snap-arm64:
runs-on: ubuntu-24.04-arm
defaults:
run:
working-directory: example
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y cmake clang ninja-build libgtk-3-dev libpulse-dev
sudo snap install flutter --classic
- run: flutter doctor --verbose
- run: flutter pub get
- run: flutter build linux --verbose
- run: mv build/linux/arm64/release/bundle .
- run: cmake -E tar Jcvf fvp_example_linux-arm64-snap.tar.xz bundle
- name: Upload
uses: actions/upload-artifact@v4
with:
name: fvp-example-linux-arm64-snap
path: example/fvp_example_linux*.tar.xz

Snap:
runs-on: ubuntu-latest
defaults:
Expand Down

0 comments on commit a02b921

Please sign in to comment.