Skip to content

Commit

Permalink
Use justfile in CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcadman authored and janmasrovira committed Apr 18, 2024
1 parent 7755083 commit 54f005d
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ env:
VAMPIRREPO: anoma/vamp-ir
VAMPIRVERSION: v0.1.3
CAIRO_VM_VERSION: ae06ba04f3b6864546b6baeeebf1b0735ddccb5d
JUST_ARGS: enableOptimized=yes runtimeCcArg=$CC runtimeLibtoolArg=$LIBTOOL

jobs:
pre-commit:
Expand Down Expand Up @@ -58,6 +59,9 @@ jobs:
build-and-test-linux:
runs-on: ubuntu-22.04
steps:
- name: install just
run: sudo snap install --edge --classic just

- name: Checkout our repository
uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -158,7 +162,7 @@ jobs:
- name: Make runtime
run: |
cd main
make runtime
just ${{ env.JUST_ARGS }} build runtime
# We use the options:
# - -fhide-source-paths
Expand All @@ -176,18 +180,19 @@ jobs:

- name: Stack setup
id: stack
uses: freckle/stack-action@v4
uses: freckle/stack-action@v5
with:
working-directory: main
stack-build-arguments: -j4 --ghc-options=-j
test: false

- name: Install and test Juvix
id: test
if: ${{ success() }}
run: |
cd main
make install
make test
just ${{ env.JUST_ARGS }} install
just ${{ env.JUST_ARGS }} test
- name: Typecheck and format Juvix examples
if: ${{ success() }}
Expand Down Expand Up @@ -225,6 +230,9 @@ jobs:
build-and-test-macos:
runs-on: macos-12
steps:
- name: Install just
run: brew install just

- name: Checkout our repository
uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -354,7 +362,7 @@ jobs:
- name: Make runtime
run: |
cd main
make CC=$CC LIBTOOL=$LIBTOOL runtime
just ${{ env.JUST_ARGS }} build runtime
# We use the options:
# - -fhide-source-paths
Expand All @@ -372,9 +380,10 @@ jobs:

- name: Stack setup
id: stack
uses: freckle/stack-action@v4
uses: freckle/stack-action@v5
with:
working-directory: main
stack-build-arguments: -j4 --ghc-options=-j
test: false

- name: Add homebrew clang to the PATH (macOS)
Expand All @@ -399,8 +408,8 @@ jobs:
if: ${{ success() }}
run: |
cd main
make CC=$CC LIBTOOL=$LIBTOOL install
make CC=$CC LIBTOOL=$LIBTOOL test
just ${{ env.JUST_ARGS }} install
just ${{ env.JUST_ARGS }} test
- name: Typecheck and format Juvix examples
if: ${{ success() }}
Expand Down

0 comments on commit 54f005d

Please sign in to comment.