Skip to content

ci(deps): bump super-linter/super-linter from 6 to 7 #33

ci(deps): bump super-linter/super-linter from 6 to 7

ci(deps): bump super-linter/super-linter from 6 to 7 #33

Workflow file for this run

---
name: Rust Test
"on":
# Since the repository is public, there are no concerns regarding CI usage.
push:
# Concurrency serves to prevent simultaneous execution of multiple identical
# workflows in the same branch.
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
test:
name: Run Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-22.04
target: "x86_64-unknown-linux-gnu"
- os: ubuntu-20.04
target: "x86_64-unknown-linux-gnu"
- os: windows-2022
target: "x86_64-pc-windows-msvc"
- os: macos-13
target: "x86_64-apple-darwin"
- os: macos-14
target: "aarch64-apple-darwin"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Extract Rust Channel
shell: bash
id: toolchain
run: ./scripts/extract_rust_channel.sh
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ steps.toolchain.outputs.version }}
targets: ${{ matrix.target }}
- name: Cache dependencies
id: cache
uses: Swatinem/rust-cache@v2
with:
prefix-key: rust-${{ matrix.os }}-${{ matrix.target }}-
shared-key: test
cache-targets: true
cache-all-crates: true
# The 'generate-caches.yaml' workflow is responsible for caching the
# dependencies.
save-if: false
- name: Run Tests
shell: bash
run: |
cargo test \
--release \
--all-targets \
--target ${{ matrix.target }}
...