Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 42 additions & 30 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: nixbuild/nix-quick-install-action@v35
- uses: cachix/cachix-action@v15
with:
name: ocaml-dune
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_OCAML_DUNE }}
- run: nix build

nix-test:
Expand All @@ -47,6 +51,10 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: nixbuild/nix-quick-install-action@v35
- uses: cachix/cachix-action@v15
with:
name: ocaml-dune
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_OCAML_DUNE }}
- run: nix develop -i -s CI true -c make test

fmt:
Expand All @@ -55,6 +63,10 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: nixbuild/nix-quick-install-action@v35
- uses: cachix/cachix-action@v15
with:
name: ocaml-dune
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_OCAML_DUNE }}
- run: nix develop .#fmt -c make fmt

diff-on-checkout:
Expand All @@ -70,6 +82,10 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: nixbuild/nix-quick-install-action@v35
- uses: cachix/cachix-action@v15
with:
name: ocaml-dune
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_OCAML_DUNE }}
- run: nix develop .#doc -c make doc
env:
LC_ALL: C
Expand All @@ -85,6 +101,10 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: nixbuild/nix-quick-install-action@v35
- uses: cachix/cachix-action@v15
with:
name: ocaml-dune
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_OCAML_DUNE }}
- run: nix develop -i .#bootstrap-check -c make test-bootstrap-script

nix-build-4-14:
Expand All @@ -98,12 +118,10 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: nixbuild/nix-quick-install-action@v35
- uses: nix-community/cache-nix-action@v7
- uses: cachix/cachix-action@v15
with:
primary-key: |
nix-${{ runner.os }}-${{ github.job }}--${{ hashFiles('**/*.nix', '**/flake.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-${{ github.job }}--
gc-max-store-size-linux: 2G
name: ocaml-dune
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_OCAML_DUNE }}
- run: nix develop -i .#bootstrap-check_4_14 -c make release

nix-build-ox:
Expand All @@ -119,12 +137,10 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: nixbuild/nix-quick-install-action@v35
- uses: nix-community/cache-nix-action@v7
- uses: cachix/cachix-action@v15
with:
primary-key: |
nix-${{ runner.os }}-${{ github.job }}--${{ hashFiles('**/*.nix', '**/flake.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-${{ github.job }}--
gc-max-store-size-linux: 2G
name: ocaml-dune
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_OCAML_DUNE }}
- run: nix develop -i .#bootstrap-ox -c make release

#
Expand Down Expand Up @@ -308,12 +324,10 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: nixbuild/nix-quick-install-action@v35
- uses: nix-community/cache-nix-action@v7
- uses: cachix/cachix-action@v15
with:
primary-key: |
nix-${{ runner.os }}-${{ github.job }}--${{ hashFiles('**/*.nix', '**/flake.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-${{ github.job }}--
gc-max-store-size-linux: 5G
name: ocaml-dune
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_OCAML_DUNE }}
- run: nix develop .#rocq -c make test-rocq

rocq-native:
Expand All @@ -323,12 +337,10 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: nixbuild/nix-quick-install-action@v35
- uses: nix-community/cache-nix-action@v7
- uses: cachix/cachix-action@v15
with:
primary-key: |
nix-${{ runner.os }}-${{ github.job }}--${{ hashFiles('**/*.nix', '**/flake.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-${{ github.job }}--
gc-max-store-size-linux: 5G
name: ocaml-dune
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_OCAML_DUNE }}
- run: nix develop .#rocq-native -c make test-rocq-native

wasm:
Expand Down Expand Up @@ -463,12 +475,10 @@ jobs:
- uses: nixbuild/nix-quick-install-action@v35
with:
nix_conf: ${{ env.EXTRA_NIX_CONFIG }}
- uses: nix-community/cache-nix-action@v7
- uses: cachix/cachix-action@v15
with:
primary-key: |
nix-${{ runner.os }}-${{ github.job }}--${{ hashFiles('**/*.nix', '**/flake.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-${{ github.job }}--
gc-max-store-size-linux: 2G
name: ocaml-dune
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_OCAML_DUNE }}
- name: Build and test with OxCaml
run: nix develop -i .#ox -c make test-ox

Expand Down Expand Up @@ -507,6 +517,10 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: nixbuild/nix-quick-install-action@v35
- uses: cachix/cachix-action@v15
with:
name: ocaml-dune
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_OCAML_DUNE }}
- run: nix develop .#microbench -c make dune build bench/micro

utop-dev-tool-test:
Expand All @@ -515,12 +529,10 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: nixbuild/nix-quick-install-action@v35
- uses: nix-community/cache-nix-action@v7
- uses: cachix/cachix-action@v15
with:
primary-key: |
nix-${{ runner.os }}-${{ github.job }}--${{ hashFiles('**/*.nix', '**/flake.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-${{ github.job }}--
gc-max-store-size-linux: 2G
name: ocaml-dune
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_OCAML_DUNE }}
- name: Set up a project, install utop as a dev tool, and run it
shell: nix shell -c bash -e {0}
run: |
Expand Down
72 changes: 42 additions & 30 deletions .github/workflows/workflow.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: nixbuild/nix-quick-install-action@v35
- uses: cachix/cachix-action@v15
with:
name: ocaml-dune
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_OCAML_DUNE }}
- run: nix build

nix-test:
Expand All @@ -46,6 +50,10 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: nixbuild/nix-quick-install-action@v35
- uses: cachix/cachix-action@v15
with:
name: ocaml-dune
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_OCAML_DUNE }}
- run: nix develop -i -s CI true -c make test

fmt:
Expand All @@ -54,6 +62,10 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: nixbuild/nix-quick-install-action@v35
- uses: cachix/cachix-action@v15
with:
name: ocaml-dune
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_OCAML_DUNE }}
- run: nix develop .#fmt -c make fmt

diff-on-checkout:
Expand All @@ -69,6 +81,10 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: nixbuild/nix-quick-install-action@v35
- uses: cachix/cachix-action@v15
with:
name: ocaml-dune
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_OCAML_DUNE }}
- run: nix develop .#doc -c make doc
env:
LC_ALL: C
Expand All @@ -84,6 +100,10 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: nixbuild/nix-quick-install-action@v35
- uses: cachix/cachix-action@v15
with:
name: ocaml-dune
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_OCAML_DUNE }}
- run: nix develop -i .#bootstrap-check -c make test-bootstrap-script

nix-build-4-14:
Expand All @@ -97,12 +117,10 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: nixbuild/nix-quick-install-action@v35
- uses: nix-community/cache-nix-action@v7
- uses: cachix/cachix-action@v15
with:
primary-key: |
nix-${{ runner.os }}-${{ github.job }}--${{ hashFiles('**/*.nix', '**/flake.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-${{ github.job }}--
gc-max-store-size-linux: 2G
name: ocaml-dune
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_OCAML_DUNE }}
- run: nix develop -i .#bootstrap-check_4_14 -c make release

nix-build-ox:
Expand All @@ -118,12 +136,10 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: nixbuild/nix-quick-install-action@v35
- uses: nix-community/cache-nix-action@v7
- uses: cachix/cachix-action@v15
with:
primary-key: |
nix-${{ runner.os }}-${{ github.job }}--${{ hashFiles('**/*.nix', '**/flake.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-${{ github.job }}--
gc-max-store-size-linux: 2G
name: ocaml-dune
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_OCAML_DUNE }}
- run: nix develop -i .#bootstrap-ox -c make release

#
Expand Down Expand Up @@ -307,12 +323,10 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: nixbuild/nix-quick-install-action@v35
- uses: nix-community/cache-nix-action@v7
- uses: cachix/cachix-action@v15
with:
primary-key: |
nix-${{ runner.os }}-${{ github.job }}--${{ hashFiles('**/*.nix', '**/flake.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-${{ github.job }}--
gc-max-store-size-linux: 5G
name: ocaml-dune
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_OCAML_DUNE }}
- run: nix develop .#rocq -c make test-rocq

rocq-native:
Expand All @@ -322,12 +336,10 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: nixbuild/nix-quick-install-action@v35
- uses: nix-community/cache-nix-action@v7
- uses: cachix/cachix-action@v15
with:
primary-key: |
nix-${{ runner.os }}-${{ github.job }}--${{ hashFiles('**/*.nix', '**/flake.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-${{ github.job }}--
gc-max-store-size-linux: 5G
name: ocaml-dune
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_OCAML_DUNE }}
- run: nix develop .#rocq-native -c make test-rocq-native

wasm:
Expand Down Expand Up @@ -462,12 +474,10 @@ jobs:
- uses: nixbuild/nix-quick-install-action@v35
with:
nix_conf: ${{ env.EXTRA_NIX_CONFIG }}
- uses: nix-community/cache-nix-action@v7
- uses: cachix/cachix-action@v15
with:
primary-key: |
nix-${{ runner.os }}-${{ github.job }}--${{ hashFiles('**/*.nix', '**/flake.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-${{ github.job }}--
gc-max-store-size-linux: 2G
name: ocaml-dune
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_OCAML_DUNE }}
- name: Build and test with OxCaml
run: nix develop -i .#ox -c make test-ox

Expand Down Expand Up @@ -506,6 +516,10 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: nixbuild/nix-quick-install-action@v35
- uses: cachix/cachix-action@v15
with:
name: ocaml-dune
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_OCAML_DUNE }}
- run: nix develop .#microbench -c make dune build bench/micro

utop-dev-tool-test:
Expand All @@ -514,12 +528,10 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: nixbuild/nix-quick-install-action@v35
- uses: nix-community/cache-nix-action@v7
- uses: cachix/cachix-action@v15
with:
primary-key: |
nix-${{ runner.os }}-${{ github.job }}--${{ hashFiles('**/*.nix', '**/flake.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-${{ github.job }}--
gc-max-store-size-linux: 2G
name: ocaml-dune
authToken: ${{ secrets.CACHIX_AUTH_TOKEN_OCAML_DUNE }}
- name: Set up a project, install utop as a dev tool, and run it
shell: nix shell -c bash -e {0}
run: |
Expand Down
Loading