-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (56 loc) · 1.64 KB
/
ci.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
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
- master
tags:
- "v?[0-9]+.[0-9]+.[0-9]+*"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
Lints:
runs-on: UbuntuLatest32Cores128G
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/flakehub-cache-action@main
- name: Check Nixpkgs input
uses: DeterminateSystems/flake-checker-action@main
- name: Check EditorConfig conformance
if: always()
run: nix develop --command check-editorconfig
- name: Check Spelling
if: always()
run: nix develop --command check-spelling
- name: Check nixpkgs-fmt formatting
if: always()
run: nix develop --command check-nixpkgs-fmt
- name: Check rustfmt
if: always()
run: nix develop --command check-rustfmt
- name: Check Clippy
if: always()
run: nix develop --command check-clippy
DeterminateCI:
needs:
- Lints
uses: DeterminateSystems/ci/.github/workflows/workflow.yml@main
permissions:
id-token: "write"
contents: "read"
with:
visibility: private
runner-map: |
{
"aarch64-darwin": "macos-latest-xlarge",
"aarch64-linux": "UbuntuLatest32Cores128GArm",
"i686-linux": "UbuntuLatest32Cores128G",
"x86_64-darwin": "macos-latest-xlarge",
"x86_64-linux": "UbuntuLatest32Cores128G"
}