chore: bump version to 0.9.0 and clean up README logo #1
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: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: # Enable manual triggering from Actions tab | |
| jobs: | |
| build: | |
| name: Build for ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| permissions: | |
| contents: write # Needed to create a release and upload assets | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| target: x86_64-unknown-linux-musl | |
| asset_name: fbqueue-linux-x64.tar.gz | |
| example_dir: linux | |
| - os: windows-latest | |
| target: x86_64-pc-windows-msvc | |
| asset_name: fbqueue-windows-x64.zip | |
| example_dir: windows | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust | |
| run: rustup update stable && rustup target add ${{ matrix.target }} | |
| - name: Install MUSL (Linux only) | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get install -y musl-tools | |
| - name: Build | |
| run: cargo build --release --target ${{ matrix.target }} | |
| - name: Package (Linux) | |
| if: runner.os == 'Linux' | |
| run: | | |
| mkdir dist | |
| cp target/${{ matrix.target }}/release/fbqueue . | |
| tar -czvf dist/${{ matrix.asset_name }} \ | |
| fbqueue \ | |
| README.md \ | |
| MANUAL.md \ | |
| PBS_COMPATIBILITY.md \ | |
| examples/${{ matrix.example_dir }} | |
| - name: Package (Windows) | |
| if: runner.os == 'Windows' | |
| shell: pwsh | |
| run: | | |
| New-Item -ItemType Directory -Path dist | |
| Copy-Item "target\${{ matrix.target }}\release\fbqueue.exe" . | |
| Compress-Archive -Path "fbqueue.exe", "README.md", "MANUAL.md", "examples\windows" -DestinationPath "dist\${{ matrix.asset_name }}" | |
| - name: Upload Release Asset | |
| uses: softprops/action-gh-release@v1 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| files: dist/${{ matrix.asset_name }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |