-
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.18 KB
/
ci.yml
File metadata and controls
45 lines (36 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: CI
on:
pull_request: { types: [opened, synchronize, reopened, ready_for_review] }
merge_group: { types: [checks_requested] }
push: { branches: [main] }
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build_and_test:
strategy:
fail-fast: false
matrix:
# prettier-ignore
target:
- { name: Linux, os: ubuntu-latest, triple: x86_64-unknown-linux-gnu }
- { name: macOS, os: macos-latest, triple: x86_64-apple-darwin }
- { name: Windows, os: windows-latest, triple: x86_64-pc-windows-msvc }
version:
- { name: stable, version: stable }
name: Test (${{ matrix.target.name }} / ${{ matrix.version.name }})
runs-on: ${{ matrix.target.os }}
steps:
- uses: actions/checkout@v5
- name: Install Rust (${{ matrix.version.version }})
uses: actions-rust-lang/setup-rust-toolchain@v1.15.1
with:
toolchain: ${{ matrix.version.version }}
- name: Install cargo-hack
uses: taiki-e/install-action@v2.62.15
with:
tool: just
- name: Test
run: just test