Skip to content

Commit

Permalink
ci: linux: build arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
alexVinarskis committed Feb 8, 2025
1 parent 12d6c4b commit a45f7c1
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
path: '*.msi'
if-no-files-found: error

build-linux:
build-linux-amd64:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -68,3 +68,40 @@ jobs:
name: ${{ env.TAR_FILE }}
path: '*.tar*'
if-no-files-found: error

build-linux-arm64:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
filter: 'tree:0'
- run: |
sudo apt-get update -y
sudo apt-get install -y curl git unzip xz-utils zip libglu1-mesa clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
sudo apt-get install -y libsqlite3-dev libsecret-1-0 libsecret-1-dev
# Until Google provides ready tarred Flutter SDK for ARM64, we need to clone and install Flutter manually
# https://github.com/subosito/flutter-action/issues/345#issuecomment-2638225681
- name: Workaround - Clone Flutter
run: |
git clone --depth 1 --branch stable https://github.com/flutter/flutter.git $RUNNER_TEMP/flutter
echo "$RUNNER_TEMP/flutter/bin" >> $GITHUB_PATH
- name: Workaround - Install Flutter
run: flutter doctor

- run: flutter config --enable-linux-desktop
- run: |
./package.sh
echo "DEB_FILE=$(ls *.deb)" >> $GITHUB_ENV
echo "TAR_FILE=$(ls *.tar.xz)" >> $GITHUB_ENV
- uses: actions/upload-artifact@v4
with:
name: ${{ env.DEB_FILE }}
path: '*.deb'
if-no-files-found: error
- uses: actions/upload-artifact@v4
with:
name: ${{ env.TAR_FILE }}
path: '*.tar*'
if-no-files-found: error

0 comments on commit a45f7c1

Please sign in to comment.