Bump actions/checkout from 6.0.1 to 6.0.2 #173
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 | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| - release-** | |
| workflow_dispatch: | |
| workflow_call: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUSTFLAGS: -Dwarnings | |
| RUST_BACKTRACE: 1 | |
| concurrency: | |
| group: "build-${{ github.head_ref || github.ref }}" | |
| cancel-in-progress: true | |
| jobs: | |
| check: | |
| name: Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: ./.github/actions/ci-setup | |
| - name: Check | |
| run: cargo check | |
| - uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 | |
| if: always() | |
| with: | |
| name: Cargo.lock | |
| path: Cargo.lock | |
| clippy: | |
| name: Clippy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: ./.github/actions/ci-setup | |
| - name: Clippy | |
| run: just clippy | |
| deny: | |
| name: Cargo Deny | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: ./.github/actions/ci-setup | |
| - name: Install cargo-deny | |
| run: cargo install cargo-deny --locked | |
| - name: Deny check | |
| run: just deny | |
| test: | |
| name: Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: ./.github/actions/ci-setup | |
| - name: Run tests | |
| run: just all-tests | |
| coverage: | |
| name: Coverage | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: ./.github/actions/ci-setup | |
| - name: Install llvm-cov | |
| run: cargo install cargo-llvm-cov | |
| - name: Generate coverage report | |
| run: just cov-html | |
| - uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 | |
| if: always() | |
| with: | |
| name: coverage-report | |
| path: target/llvm-cov/html | |
| - name: Check coverage | |
| run: just cov-check | |
| docs: | |
| name: Docs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: ./.github/actions/ci-setup | |
| with: | |
| target: x86_64-unknown-linux-musl | |
| - name: Docs | |
| run: just doc | |
| - name: Upload documentation | |
| uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 | |
| if: always() | |
| with: | |
| name: docs-html | |
| path: target/x86_64-unknown-linux-musl/doc | |
| build: | |
| name: Build - ${{ matrix.arch }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| arch: [amd64, arm64] | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set build target | |
| id: set_target | |
| run: | | |
| if [ "${{ matrix.arch }}" == "amd64" ]; then | |
| echo "TARGET=x86_64-unknown-linux-musl" >> $GITHUB_ENV | |
| elif [ "${{ matrix.arch }}" == "arm64" ]; then | |
| echo "TARGET=aarch64-unknown-linux-musl" >> $GITHUB_ENV | |
| fi | |
| - uses: ./.github/actions/ci-setup | |
| with: | |
| target: ${{ env.TARGET }} | |
| - name: Build - ${{ matrix.arch }} | |
| run: cargo build --target ${TARGET} --release | |
| - name: Prepare build artifact | |
| run: mv target/${{ env.TARGET }}/release/libankaios_sdk.rlib libankaios_sdk-${{ matrix.arch }}.rlib | |
| - name: Upload binary - ${{ matrix.arch }} | |
| uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 | |
| if: always() | |
| with: | |
| name: libankaios_sdk-${{ matrix.arch }} | |
| path: libankaios_sdk-${{ matrix.arch }}.rlib | |
| msrv-check: | |
| name: MSRV Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: ./.github/actions/ci-setup | |
| - name: Install cargo-msrv | |
| run: cargo install cargo-msrv | |
| - name: Extract MSRV from Cargo.toml | |
| id: msrv | |
| run: | | |
| MSRV=$(grep -oP '^rust-version\s*=\s*"\K[^"]+' Cargo.toml) | |
| echo "version=$MSRV" >> $GITHUB_OUTPUT | |
| echo "Documented MSRV: $MSRV" | |
| - name: Verify MSRV with cargo-msrv | |
| run: | | |
| FOUND_MSRV=$(cargo msrv find --include-all-patch-releases --linear --output-format minimal) | |
| if [ "$FOUND_MSRV" != "${{ steps.msrv.outputs.version }}" ]; then | |
| echo "ERROR: MSRV mismatch! Found $FOUND_MSRV but Cargo.toml specifies ${{ steps.msrv.outputs.version }}" | |
| exit 1 | |
| fi | |
| - name: Test with MSRV | |
| run: | | |
| rustup install ${{ steps.msrv.outputs.version }} | |
| rustup target add --toolchain ${{ steps.msrv.outputs.version }} x86_64-unknown-linux-musl | |
| cargo +${{ steps.msrv.outputs.version }} test | |
| publish-check: | |
| name: Publish Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: ./.github/actions/ci-setup | |
| - name: Publish Check | |
| run: cargo publish --dry-run |