An open-source cross-platform alternative to AirDrop
ci: add arm64 test runner
Tien Do Nam3c69e8738df0
diff --git a/.github/workflows/test_arm64_tar.yml b/.github/workflows/test_arm64_tar.ymlnew file mode 100644index 00000000..adf0684f--- /dev/null+++ b/.github/workflows/test_arm64_tar.yml@@ -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