Skip to content

Commit dca68d8

Browse files
ci: add nix build (#126)
1 parent 1a3b843 commit dca68d8

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/workflows/ci-nix.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Nix CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
name: Nix Build
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
20+
21+
- name: Install Nix
22+
uses: cachix/install-nix-action@7be5dee1421f63d07e71ce6e0a9f8a4b07c2a487 # v31.6.1
23+
24+
- name: Setup Nix GHA Cache
25+
uses: DeterminateSystems/magic-nix-cache-action@565684385bcd71bad329742eefe8d12f2e765b39 # v13
26+
27+
- name: Build
28+
run: |
29+
nix build .#expert

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: Elixir CI
33
on:
44
pull_request:
55
push:
6-
branches: main
6+
branches:
7+
- main
78

89
env:
910
DEFAULT_ELIXIR: 1.15.8-otp-25

0 commit comments

Comments
 (0)