Skip to content

Commit 4a31502

Browse files
committed
chore(oxcaml): nix based oxcaml ci
Signed-off-by: Ali Caglayan <alizter@gmail.com>
1 parent be54d96 commit 4a31502

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/workflows/workflow.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,3 +369,20 @@ jobs:
369369
restore-prefixes-first-match: nix-${{ runner.os }}-${{ github.job }}-
370370
gc-max-store-size-linux: 5G
371371
- run: nix develop .#microbench -c make dune build bench/micro
372+
373+
oxcaml-test:
374+
name: OxCaml Tests
375+
needs: nix-build
376+
runs-on: ubuntu-latest
377+
steps:
378+
- uses: actions/checkout@v5
379+
- uses: nixbuild/nix-quick-install-action@v34
380+
with:
381+
nix_conf: ${{ env.EXTRA_NIX_CONFIG }}
382+
- uses: nix-community/cache-nix-action@v6
383+
with:
384+
primary-key: |
385+
nix-${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
386+
restore-prefixes-first-match: nix-${{ runner.os }}-${{ github.job }}-
387+
gc-max-store-size-linux: 2G
388+
- run: nix develop .#ox-minimal -c make test-ox

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ test-all: $(BIN)
112112
test-all-sans-melange: $(BIN)
113113
$(BIN) build @runtest @runtest-js @runtest-coq
114114

115+
test-ox:
116+
$(BIN) runtest test/blackbox-tests/test-cases/oxcaml
117+
115118
.PHONY: check
116119
check: $(BIN)
117120
@$(BIN) build @check

0 commit comments

Comments
 (0)