This repository was archived by the owner on Jan 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-112
lines changed Expand file tree Collapse file tree 3 files changed +3
-112
lines changed Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
build :
11
- name : Build (${{ matrix.os }})
11
+ name : Nix Build
12
12
13
- strategy :
14
- fail-fast : false
15
- matrix :
16
- include :
17
- - os : ubuntu-latest
18
- use-nix : true
19
- - os : windows-latest
20
- use-nix : false
21
-
22
- runs-on : ${{ matrix.os }}
13
+ runs-on : ubuntu-latest
23
14
24
15
steps :
25
16
- name : Checkout repository
26
17
uses : actions/checkout@v4
27
18
28
- - name : Install Rust
29
- if : ${{ !matrix.use-nix }}
30
- uses : actions-rust-lang/setup-rust-toolchain@v1
31
-
32
19
- name : Install Nix
33
- if : ${{ matrix.use-nix }}
34
20
uses : DeterminateSystems/nix-installer-action@v16
35
21
36
22
- name : Setup Nix cache
37
- if : ${{ matrix.use-nix }}
38
23
uses : DeterminateSystems/magic-nix-cache-action@v8
39
24
40
25
- name : Build
41
- if : ${{ !matrix.use-nix }}
42
- run : cargo build --locked
43
-
44
- - name : Build
45
- if : ${{ matrix.use-nix }}
46
26
run : nix build --print-build-logs .#modmail
47
27
48
28
flake :
49
- name : Flake checks
29
+ name : Nix Check
50
30
51
31
runs-on : ubuntu-latest
52
32
63
43
- name : Run checks
64
44
run : |
65
45
nix flake check --print-build-logs --show-trace
66
-
67
- # Make sure all above jobs finished successfully
68
- release-gate :
69
- name : CI Release gate
70
- needs : [build, flake]
71
-
72
- if : ${{ always() }}
73
-
74
- runs-on : ubuntu-latest
75
-
76
- steps :
77
- - name : Exit with error
78
- if : ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
79
- run : exit 1
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments