ci: add arm64 test runner

This commit is contained in:
Tien Do Nam
2023-12-04 16:36:01 +01:00
parent 656f89c511
commit 3c69e8738d
+58
View File
@@ -0,0 +1,58 @@
name: Build arm64 tar
on:
workflow_dispatch:
env:
FLUTTER_VERSION: "3.16.2"
jobs:
build:
runs-on: ubuntu-22.04
outputs:
version: ${{ steps.get_version.outputs.version }}
steps:
- uses: actions/checkout@v4
- name: Get version from pubspec.yaml
id: get_version
run: |
VERSION=$(sed -n 's/^version: \([0-9]*\.[0-9]*\.[0-9]*\).*/\1/p' app/pubspec.yaml)
echo "version=$VERSION" >> $GITHUB_OUTPUT
build_tar:
needs: build
runs-on: [self-hosted, linux, arm64]
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y clang cmake libgtk-3-dev ninja-build libayatana-appindicator3-dev
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: "stable"
- name: Dependencies
working-directory: app
run: flutter pub get
- name: Compile linux
working-directory: app
run: flutter build linux
- name: Create tar.gz archive
run: |
cd app/build/linux/x64/release/bundle
tar -czvf ../../../../../result.tar.gz *
- name: Upload tar.gz archive
uses: actions/upload-artifact@v3
with:
name: tar-gz-arm-64-result
path: ./app/*.tar.gz