Skip to content

Commit c846458

Browse files
authored
ci: restructure GitHub workflows (#34)
* Split build job into separate check and build jobs * Move flake check to dedicated check job Signed-off-by: Qiming Chu <[email protected]>
1 parent aca4df8 commit c846458

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Build git-commit-generator"
1+
name: "Build and check"
22
on:
33
push:
44
branches:
@@ -7,8 +7,8 @@ on:
77
branches:
88
- main
99
jobs:
10-
build:
11-
name: Build on ${{ matrix.os }}
10+
check:
11+
name: Check on ${{ matrix.os }}
1212
runs-on: ${{ matrix.os }}
1313
strategy:
1414
matrix:
@@ -18,6 +18,15 @@ jobs:
1818
- uses: cachix/install-nix-action@v31
1919
- name: Flake check
2020
run: nix flake check --all-systems
21+
build:
22+
name: Build on ${{ matrix.os }}
23+
runs-on: ${{ matrix.os }}
24+
strategy:
25+
matrix:
26+
os: [ubuntu-latest, macos-latest]
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: cachix/install-nix-action@v31
2130
- name: Build Git Commit Generator
2231
run: nix build '.#git-commit-generator'
2332
- name: Upload Git Commit Generator

0 commit comments

Comments
 (0)