Skip to content

Update GitHub Actions to v4 #129

Update GitHub Actions to v4

Update GitHub Actions to v4 #129

Workflow file for this run

name: Build
on: [push]
jobs:
build:
strategy:
matrix:
runner: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Update local toolchain
run: |
rustup update
- name: Toolchain info
run: |
rustc --version
cargo --version --verbose
- name: Test
run: |
cargo build --release --all-features
build-dummy:
strategy:
matrix:
# Targets that this crate does NOT support
target: [x86_64-unknown-freebsd]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Update local toolchain
run: |

Check failure on line 51 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 51, Col: 14): Unrecognized named-value: 'metrix'. Located at position 1 within expression: metrix.target
rustup update
rustup target add ${{ metrix.target }}
- name: Toolchain info
run: |
rustc --version
cargo --version --verbose
- name: Test
run: |
cargo build --release --features dummy --target ${{ matrix.target }}