-
-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (50 loc) · 1.55 KB
/
Copy pathci.yml
File metadata and controls
52 lines (50 loc) · 1.55 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
46
47
48
49
50
51
52
name: CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6.0.2
- uses: DeterminateSystems/nix-installer-action@v22
- uses: DeterminateSystems/magic-nix-cache-action@v13
- name: Load Shell
run: nix develop .#ciShell --command rustc --version --verbose
test:
needs: setup
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- crate: crates/assets
- crate: crates/macros
- crate: crates/slide
- crate: crates/tests
- crate: crates/untorn
- crate: crates/vulkan
- crate: mutate-lib
features: vulkan
- crate: examples/minimal
steps:
- uses: actions/checkout@v6.0.2
- uses: DeterminateSystems/nix-installer-action@v22
- uses: DeterminateSystems/magic-nix-cache-action@v13
- name: Test ${{ matrix.crate }}
run: |
nix develop .#ciShell --command cargo test \
--manifest-path ${{ matrix.crate }}/Cargo.toml \
${{ matrix.features && format('--features {0}', matrix.features) || '' }}
build:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6.0.2
- uses: DeterminateSystems/nix-installer-action@v22
- uses: DeterminateSystems/magic-nix-cache-action@v13
- name: Build mutate-visualizer
run: nix develop .#ciShell --command cargo build --manifest-path mutate-visualizer/Cargo.toml