mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-14 08:25:01 +01:00
54 lines
1.1 KiB
YAML
54 lines
1.1 KiB
YAML
name: Rust
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
build:
|
|
- linux-stable
|
|
- linux-beta
|
|
- linux-nightly
|
|
- windows
|
|
- macos
|
|
include:
|
|
- build: linux-stable
|
|
os: ubuntu-latest
|
|
rust: stable
|
|
- build: linux-beta
|
|
os: ubuntu-latest
|
|
rust: beta
|
|
- build: linux-nightly
|
|
os: ubuntu-latest
|
|
rust: nightly
|
|
- build: windows
|
|
os: windows-latest
|
|
rust: stable
|
|
- build: macos
|
|
os: macos-latest
|
|
rust: stable
|
|
|
|
name: Test ${{ matrix.build }}
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: true
|
|
- uses: dtolnay/rust-toolchain@master
|
|
with:
|
|
toolchain: ${{ matrix.rust }}
|
|
components: rustfmt
|
|
- name: Run tests
|
|
run: cargo test --verbose
|
|
- name: Check formatting
|
|
run: cargo fmt --check
|
|
if: ${{ matrix.build == 'linux-nightly' }}
|