Skip to content

Commit

Permalink
ci: try to fake DUNE_INSTALL_PREFIX
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinafyi committed Jan 22, 2025
1 parent a31041c commit 6326e83
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Test partial eval
on:
push:
branches:
- partial_eval
- partial_eval
pull_request:
types: []
workflow_dispatch:
Expand Down Expand Up @@ -45,18 +45,27 @@ jobs:
offline:
runs-on: ubuntu-latest
env:
PREFIX: /tmp/prefix
DUNE_INSTALL_PREFIX: /tmp/prefix

steps:
- uses: actions/checkout@v4

- uses: cachix/install-nix-action@v25
- run: echo 'preparing nix shell environment'

- run: |
echo 'preparing nix shell environment'
set -u
mkdir -p "$DUNE_INSTALL_PREFIX"
# echo "OCAMLPATH=$DUNE_INSTALL_PREFIX/lib:$OCAMLPATH" | tee -a "$GITHUB_ENV"
# ^ note: the nix shell would override this external variable
- run: dune build -p asli -j4 --profile=release

- run: dune install -p asli --profile=release

- run: dune build -p aslp_offline -j4
- run: 'OCAMLPATH=$PREFIX/lib:$OCAMLPATH PATH=$PREFIX/bin:$PATH dune build -p aslp_offline -j4'

- run: dune install -p aslp_offline

Expand Down

0 comments on commit 6326e83

Please sign in to comment.