bump: 1.0.1 #2
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: Publish snapmaker_firmware_repacker | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| jobs: | |
| build: | |
| name: Publish binaries | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v4 | |
| - name: Set up Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Build project | |
| run: cargo build --release | |
| - name: Package binary (only for release builds) | |
| if: startsWith(github.ref, 'refs/tags/') | |
| run: | | |
| mkdir -p dist | |
| if [ "${{ runner.os }}" = "Windows" ]; then | |
| cp target/release/snapmaker_firmware_repacker.exe dist/ | |
| else | |
| cp target/release/snapmaker_firmware_repacker dist/ | |
| fi | |
| shell: bash | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: snapmaker_firmware_repacker-${{ matrix.os }} | |
| path: dist/* | |
| if-no-files-found: error |