Bump actions/checkout from 4 to 5 #21
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: | |
| branches: | |
| - main | |
| tags: | |
| - "v*.*.*" | |
| paths-ignore: | |
| - "README.md" | |
| - "LICENSE" | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| target: x86_64-unknown-linux-gnu | |
| - os: macos-latest | |
| target: x86_64-apple-darwin | |
| - os: macos-latest | |
| target: aarch64-apple-darwin | |
| - os: windows-latest | |
| target: x86_64-pc-windows-msvc | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 15 | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - run: | | |
| if [[ ${{ matrix.os }} = "windows-latest" ]]; then | |
| EXT=".exe" | |
| else | |
| EXT="" | |
| fi | |
| echo "EXT: $EXT" | |
| echo "ext=$EXT" >> $GITHUB_OUTPUT | |
| id: check | |
| shell: bash | |
| - run: rustup update stable | |
| - run: rustup default stable | |
| - run: rustup target add ${{ matrix.target }} | |
| - run: | | |
| SRC="target/${{ matrix.target }}/release/trf${{ steps.check.outputs.ext }}" | |
| echo "SRC: $SRC" | |
| DST="target/release/trf-${{ matrix.target }}${{ steps.check.outputs.ext }}" | |
| echo "DST: $DST" | |
| cargo build --release --target ${{ matrix.target }} | |
| mv -v $SRC $DST | |
| echo "dst=$DST" >> $GITHUB_OUTPUT | |
| id: release | |
| shell: bash | |
| - uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| fail_on_unmatched_files: true | |
| files: ${{ steps.release.outputs.dst }} | |
| body: | | |
| Notable changes since the last release are documented in the [CHANGELOG.md](https://github.com/rikhuijzer/trf/blob/main/CHANGELOG.md) file. |