Skip to content

Commit 84e123f

Browse files
committed
ci(workflows): run on mac also
1 parent 69af031 commit 84e123f

2 files changed

Lines changed: 19 additions & 7 deletions

File tree

.github/workflows/nix-build.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
1-
name: "Nix build"
1+
name: Tests
2+
23
on:
3-
pull_request:
44
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
59
jobs:
6-
checks:
7-
runs-on: ubuntu-latest
10+
test:
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest, macos-latest]
14+
runs-on: ${{ matrix.os }}
815
steps:
9-
- uses: actions/checkout@v6
10-
- uses: DeterminateSystems/nix-installer-action@v22
11-
- run: nix flake check -Lv
16+
- uses: actions/checkout@v6
17+
with:
18+
fetch-depth: 0
19+
- name: Install Nix
20+
uses: DeterminateSystems/nix-installer-action@main
21+
- name: Run checks
22+
run: nix flake check -Lvv --log-format bar-with-logs

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
BINDIR = placeholder "out" + "/bin";
3838
LIBDIR = placeholder "out" + "/lib/lua/" + (finalAttrs.passthru.luaModule or lua).luaversion;
3939
LUADIR = placeholder "out" + "/share/lua/" + (finalAttrs.passthru.luaModule or lua).luaversion;
40+
LIBFLAG = if lua.stdenv.isDarwin then "-bundle -undefined dynamic_lookup" else "-shared";
4041
meta.mainProgram = "tomlua";
4142
meta.maintainers = [ lib.maintainers.birdee ];
4243
doCheck = false;

0 commit comments

Comments
 (0)