Workflow file for this run
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 Patchwork for Windows | ||
| on: | ||
| workflow_call: | ||
| jobs: | ||
| build-windows: | ||
| runs-on: "windows-latest" | ||
| name: 📐 Build ${{ matrix.arch }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| # ARM32 Is not officially supported yet, you need to self build rust target. | ||
| arch: ["x86_64-pc-windows-msvc", "aarch64-pc-windows-msvc"] #, , "i686-pc-windows-msvc", "aarch64-pc-windows-msvc", "thumbv7a-pc-windows-msvc"] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| # pull the tags so Just can sign the version | ||
| run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
| - name: Restore Cache | ||
| uses: Swatinem/rust-cache@v2 | ||
| with: | ||
| prefix-key: patchwork_rust_plugin_windows-${{ matrix.arch }} | ||
| - name: Build | ||
| uses: ./.github/actions/build-plugin | ||
| with: | ||
| arch: ${{ matrix.arch }} | ||
| - name: Upload | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: patchwork-build-windows-${{ matrix.arch }} | ||
| path: | | ||
| build/patchwork/* | ||
| if-no-files-found: error | ||