Skip to content

Commit 4c0b4af

Browse files
committed
ci: add nix-build for c and haskell on linux/macos
1 parent dcefc84 commit 4c0b4af

File tree

2 files changed

+32
-13
lines changed

2 files changed

+32
-13
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
codespell:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: codespell-project/actions-codespell@v2
11+
with:
12+
ignore_words_file: spelling.ignore.txt
13+
skip: alectryon
14+
build:
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
project: ["c", "haskell"] # coq takes a very long time and times out at 6 hours...
19+
os: ["ubuntu-latest", macos-latest]
20+
channel: ["nixos-25.05", "nixpkgs-unstable"]
21+
runs-on: ${{ matrix.os }}
22+
permissions:
23+
id-token: write
24+
contents: read
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: DeterminateSystems/nix-installer-action@v17
28+
- name: Update channel ${{matrix.channel}}
29+
run: |
30+
nix-channel --add https://nixos.org/channels/${{matrix.channel}} nixpkgs
31+
nix-channel --update
32+
- run: nix-build -A ${{matrix.project}}

.github/workflows/codespell.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)