Upgrade workflow to use setup-rust-toolchain

This commit is contained in:
HoLLy 2024-08-31 18:58:24 +02:00
Родитель a8af7e36fc
Коммит 89a5d6c4ec
1 изменённых файлов: 10 добавлений и 13 удалений

23
.github/workflows/rust.yml поставляемый
Просмотреть файл

@ -2,21 +2,18 @@ name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
test:
name: cargo test
runs-on: ubuntu-latest
strategy:
matrix:
target: [x86_64-pc-windows-gnu, x86_64-unknown-linux-musl]
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
target: ${{ matrix.target }}
- run: cargo test --all-features