Skip to content

Commit

Permalink
Update rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaiSch authored Feb 1, 2024
1 parent b27bffd commit 4459426
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
name: Rust
name: Rust Tests

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always
on: [push, pull_request]

jobs:
build:
simple:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

name: Test `cargo check/test/build` on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- uses: actions/checkout@v3
- run: rustup toolchain install stable --profile minimal --no-self-update
- uses: ./
- run: |
cargo check
cargo test
cargo build --release
working-directory: tests

0 comments on commit 4459426

Please sign in to comment.