-
Notifications
You must be signed in to change notification settings - Fork 12
148 lines (148 loc) · 4.03 KB
/
qapi-rs.yml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
env:
CI_ALLOW_ROOT: '1'
CI_CONFIG: ./ci.nix
CI_PLATFORM: gh-actions
jobs:
ci-check:
name: qapi-rs check
runs-on: ubuntu-latest
steps:
- id: checkout
name: git clone
uses: actions/checkout@v4
with:
submodules: true
- id: nix-install
name: nix install
uses: arcnmx/ci/actions/nix/[email protected]
- id: ci-action-build
name: nix build ci.gh-actions.configFile
uses: arcnmx/ci/actions/nix/[email protected]
with:
attrs: ci.gh-actions.configFile
out-link: .ci/workflow.yml
- id: ci-action-compare
name: gh-actions compare
uses: arcnmx/ci/actions/nix/[email protected]
with:
args: -u .github/workflows/qapi-rs.yml .ci/workflow.yml
attrs: nixpkgs.diffutils
command: diff
macos:
name: qapi-rs-macos
runs-on: macos-latest
steps:
- id: checkout
name: git clone
uses: actions/checkout@v4
with:
submodules: true
- id: nix-install
name: nix install
uses: arcnmx/ci/actions/nix/[email protected]
- id: ci-setup
name: nix setup
uses: arcnmx/ci/actions/nix/[email protected]
with:
attrs: ci.job.macos.run.setup
quiet: false
- id: ci-dirty
name: nix test dirty
uses: arcnmx/ci/actions/nix/[email protected]
with:
attrs: ci.job.macos.run.test
command: ci-build-dirty
quiet: false
stdout: ${{ runner.temp }}/ci.build.dirty
- id: ci-test
name: nix test build
uses: arcnmx/ci/actions/nix/[email protected]
with:
attrs: ci.job.macos.run.test
command: ci-build-realise
ignore-exit-code: true
quiet: false
stdin: ${{ runner.temp }}/ci.build.dirty
- env:
CI_EXIT_CODE: ${{ steps.ci-test.outputs.exit-code }}
id: ci-summary
name: nix test results
uses: arcnmx/ci/actions/nix/[email protected]
with:
attrs: ci.job.macos.run.test
command: ci-build-summarise
quiet: false
stdin: ${{ runner.temp }}/ci.build.dirty
stdout: ${{ runner.temp }}/ci.build.cache
- env:
CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }}
id: ci-cache
if: always()
name: nix test cache
uses: arcnmx/ci/actions/nix/[email protected]
with:
attrs: ci.job.macos.run.test
command: ci-build-cache
quiet: false
stdin: ${{ runner.temp }}/ci.build.cache
nixos:
name: qapi-rs-nixos
runs-on: ubuntu-latest
steps:
- id: checkout
name: git clone
uses: actions/checkout@v4
with:
submodules: true
- id: nix-install
name: nix install
uses: arcnmx/ci/actions/nix/[email protected]
- id: ci-setup
name: nix setup
uses: arcnmx/ci/actions/nix/[email protected]
with:
attrs: ci.job.nixos.run.setup
quiet: false
- id: ci-dirty
name: nix test dirty
uses: arcnmx/ci/actions/nix/[email protected]
with:
attrs: ci.job.nixos.run.test
command: ci-build-dirty
quiet: false
stdout: ${{ runner.temp }}/ci.build.dirty
- id: ci-test
name: nix test build
uses: arcnmx/ci/actions/nix/[email protected]
with:
attrs: ci.job.nixos.run.test
command: ci-build-realise
ignore-exit-code: true
quiet: false
stdin: ${{ runner.temp }}/ci.build.dirty
- env:
CI_EXIT_CODE: ${{ steps.ci-test.outputs.exit-code }}
id: ci-summary
name: nix test results
uses: arcnmx/ci/actions/nix/[email protected]
with:
attrs: ci.job.nixos.run.test
command: ci-build-summarise
quiet: false
stdin: ${{ runner.temp }}/ci.build.dirty
stdout: ${{ runner.temp }}/ci.build.cache
- env:
CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }}
id: ci-cache
if: always()
name: nix test cache
uses: arcnmx/ci/actions/nix/[email protected]
with:
attrs: ci.job.nixos.run.test
command: ci-build-cache
quiet: false
stdin: ${{ runner.temp }}/ci.build.cache
name: qapi-rs
'on':
- push
- pull_request