ci(release): drop armv7 build target #6
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*' | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| name: Build ${{ matrix.target }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - target: x86_64-unknown-linux-gnu | |
| os: ubuntu-latest | |
| use-cross: false | |
| - target: x86_64-pc-windows-msvc | |
| os: windows-latest | |
| use-cross: false | |
| - target: aarch64-unknown-linux-gnu | |
| os: ubuntu-latest | |
| use-cross: true | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: "1.97" | |
| - name: Install cross | |
| if: matrix.use-cross | |
| uses: taiki-e/install-action@cross | |
| - name: Build (native) | |
| if: ${{ !matrix.use-cross }} | |
| run: cargo build --release --target ${{ matrix.target }} | |
| - name: Build (cross) | |
| if: matrix.use-cross | |
| run: cross build --release --target ${{ matrix.target }} | |
| - name: Prepare binary | |
| id: artifact | |
| shell: bash | |
| run: | | |
| VERSION="${{ github.ref_name }}" | |
| VERSION="${VERSION#v}" | |
| if [[ "${{ matrix.target }}" == *windows* ]]; then | |
| BIN_NAME="raven-${VERSION}-${{ matrix.target }}.exe" | |
| cp "target/${{ matrix.target }}/release/raven.exe" "${BIN_NAME}" | |
| else | |
| BIN_NAME="raven-${VERSION}-${{ matrix.target }}" | |
| cp "target/${{ matrix.target }}/release/raven" "${BIN_NAME}" | |
| fi | |
| echo "bin_name=${BIN_NAME}" >> $GITHUB_OUTPUT | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: ${{ steps.artifact.outputs.bin_name }} | |
| path: ${{ steps.artifact.outputs.bin_name }} | |
| release: | |
| name: Create Release | |
| needs: build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Download all artifacts | |
| uses: actions/download-artifact@v8 | |
| with: | |
| path: artifacts | |
| merge-multiple: true | |
| - name: Generate checksums | |
| # Compute SHA-256 over every built binary so the installers can verify | |
| # integrity. Written into the artifacts dir so it's uploaded alongside | |
| # the binaries and the installers find it as checksums.txt. | |
| working-directory: artifacts | |
| shell: bash | |
| run: | | |
| sha256sum * > checksums.txt | |
| cat checksums.txt | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v3 | |
| with: | |
| files: artifacts/* | |
| generate_release_notes: true |