fix(ci): checkout repo before validating custom-source inputs (#234) #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build ABK Desktop | |
| on: | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - "desktop/**" | |
| - "cli/**" | |
| - "zram/**" | |
| - "ddk/**" | |
| - "config/**" | |
| - "app/signing/abk-manager-cert.env" | |
| - "hmbird_patch.c" | |
| - ".github/workflows/build-abk-desktop.yml" | |
| permissions: | |
| contents: read | |
| jobs: | |
| linux-appimage: | |
| if: ${{ github.event_name == 'workflow_dispatch' || github.repository == 'xingguangcuican6666/ABK' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Set up Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| - name: Install Linux desktop build dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | |
| clang cmake ninja-build pkg-config curl libgtk-3-dev libwebkit2gtk-4.1-dev | |
| - name: Enable Linux desktop | |
| run: flutter config --enable-linux-desktop | |
| - name: Build AppImage | |
| run: bash desktop/scripts/package-linux-appimage.sh | |
| - name: Upload Linux artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: abk-linux-appimage | |
| path: desktop/out/linux/ABK-x86_64.AppImage | |
| windows-bundle: | |
| if: ${{ github.event_name == 'workflow_dispatch' || github.repository == 'xingguangcuican6666/ABK' }} | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Set up Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Enable Windows desktop | |
| run: flutter config --enable-windows-desktop | |
| - name: Build Windows bundle | |
| shell: pwsh | |
| run: .\desktop\scripts\package-windows-bundle.ps1 | |
| - name: Upload Windows artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: abk-windows-x64 | |
| path: desktop/out/windows/ABK-windows-x64.zip |