tangled
alpha
login
or
join now
bwc9876.dev
/
manhunt-app
0
fork
atom
Live location tracking and playback for the game "manhunt"
0
fork
atom
overview
issues
pulls
1
pipelines
Nvm i hate GH actions
bwc9876.dev
9 months ago
8310a96c
3c128fbd
verified
This commit was signed with the committer's
known signature
.
bwc9876.dev
SSH Key Fingerprint:
SHA256:DanMEP/RNlSC7pAVbnXO6wzQV00rqyKj053tz4uH5gQ=
+4
-56
2 changed files
expand all
collapse all
unified
split
.github
workflows
ci.yml
flake.nix
-52
.github/workflows/ci.yml
···
1
1
-
name: Flake Check CI
2
2
-
on:
3
3
-
workflow_dispatch:
4
4
-
push:
5
5
-
branches: [main]
6
6
-
paths-ignore:
7
7
-
- ".github/**"
8
8
-
- "*.md"
9
9
-
- justfile
10
10
-
pull_request:
11
11
-
branches: [main]
12
12
-
paths-ignore:
13
13
-
- ".github/**"
14
14
-
- "*.md"
15
15
-
- justfile
16
16
-
jobs:
17
17
-
check-eval:
18
18
-
name: Eval / Get Checks
19
19
-
runs-on: ubuntu-latest
20
20
-
outputs:
21
21
-
matrix: ${{ steps.checks-matrix.outputs.matrix }}
22
22
-
steps:
23
23
-
- name: Checkout
24
24
-
uses: actions/checkout@v4
25
25
-
with:
26
26
-
fetch-depth: 0
27
27
-
ref: ${{ github.head_ref }}
28
28
-
- name: Setup Nix
29
29
-
uses: DeterminateSystems/nix-installer-action@v16
30
30
-
- name: Show Flake
31
31
-
run: nix flake show
32
32
-
- name: Output Checks Matrix
33
33
-
id: checks-matrix
34
34
-
run: |
35
35
-
echo "matrix=$(nix eval --json .#checks.x86_64-linux --apply "c: {check = (builtins.attrNames c);}")" >> $GITHUB_OUTPUT
36
36
-
run-checks:
37
37
-
name: Run Check
38
38
-
needs: check-eval
39
39
-
runs-on: ubuntu-latest
40
40
-
strategy:
41
41
-
matrix: ${{fromJSON(needs.check-eval.outputs.matrix)}}
42
42
-
steps:
43
43
-
- name: Checkout
44
44
-
uses: actions/checkout@v4
45
45
-
with:
46
46
-
fetch-depth: 0
47
47
-
ref: ${{ github.head_ref }}
48
48
-
- name: Setup Nix
49
49
-
uses: DeterminateSystems/nix-installer-action@v16
50
50
-
- name: Run Check ${{matrix.check}}
51
51
-
run: nix build .#checks.x86_64-linux.${{matrix.check}}
52
52
-
+4
-4
flake.nix
···
15
15
};
16
16
17
17
flakelight.builtinFormatters = false;
18
18
-
formatters = {
19
19
-
"*.nix" = "alejandra .";
20
20
-
"*.{js,ts,jsx,tsx,md,json}" = "prettier --write . --config frontend/.prettierrc.yaml";
21
21
-
"*.rs" = "cd backend; cargo fmt";
18
18
+
formatters = pkgs: {
19
19
+
"*.nix" = "${pkgs.alejandra}/bin/alejandra .";
20
20
+
"*.{js,ts,jsx,tsx,md,json}" = "${pkgs.prettier}/bin/prettier --write . --config frontend/.prettierrc.yaml";
21
21
+
"*.rs" = "${pkgs.rustfmt}";
22
22
};
23
23
24
24
devShell = pkgs: let