diff --git a/.github/workflows/build-quickemu.yml b/.github/workflows/build-quickemu.yml new file mode 100644 index 0000000..797a160 --- /dev/null +++ b/.github/workflows/build-quickemu.yml @@ -0,0 +1,40 @@ +name: Build Quickgui ๐Ÿ—๏ธ + +on: + pull_request: + branches: + - main + push: + branches: + - main + workflow_dispatch: + +# TODO: arm64 runner +# https://github.blog/changelog/2024-06-03-actions-arm-based-linux-and-windows-runners-are-now-in-public-beta/ + +jobs: + build-linux-x64: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - uses: subosito/flutter-action@v2 + with: + channel: stable + architecture: x64 + flutter-version-file: pubspec.yaml + - name: Install system dependencies ๐Ÿ“ฆ๏ธ + run: sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-0 libgtk-3-dev libblkid1 liblzma5 + - name: Install Flutter dependencies ๐Ÿฆ‹ + run: flutter pub get + - name: Enable Linux build ๐Ÿง + run: flutter config --enable-linux-desktop + - name: Build artifacts ๐Ÿ—๏ธ + run: flutter build linux --release + - name: Build output ๐ŸŒณ + run: tree build/linux/x64/release/bundle + - name: Upload artifacts โคด๏ธ + uses: actions/upload-artifact@v4 + with: + name: Quickgui-${{github.run_number}}-linux.zip + path: build/linux/x64/release/bundle + overwrite: true