Skip to content

Commit

Permalink
ci: add scala lifter compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinafyi committed Sep 2, 2024
1 parent 6fcda77 commit 2d1b983
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 8 deletions.
26 changes: 25 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
- run: dune build @offline-coverage -j4

offline-cpp:
runs-on: ubuntu-24.04
runs-on: ubuntu-24.04 # for recent llvm version

steps:
- uses: actions/checkout@v4
Expand All @@ -81,3 +81,27 @@ jobs:

- name: 'syntax check generated C++ lifter'
run: meson compile -C offlineASL-cpp/build

offline-scala:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

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

- uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 17

- uses: coursier/cache-action@v6
- run: cs install mill

- run: dune build --profile release
- run: echo ':gen A64 .* scala true offlineASL-scala/lifter/generated' | OCAMLRUNPARAM=b dune exec asli

- run: mill lifter.assembly
- run: mill main.compile
- run: mill main.run --opcode 0x8b031041
14 changes: 7 additions & 7 deletions offlineASL-scala/readme.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Build standalone Scala lifter interface
Build standalone Scala lifter interface.

```
# (in parent direictory)
~ echo ':gen A64 aarch64.+ scala true scalaOfflineASL/lifter/generated' | dune exec asli
~ cd scalaOfflineASL
~ ./mill lifter.assembly
~ ./mill main.run
Requires Mill (e.g. installed by Coursier). Run in parent directory:
```bash
echo ':gen A64 aarch64.+ scala true offlineASL-scala/lifter/generated' | dune exec asli
cd offlineASL-scala
mill lifter.assembly
mill main.run --opcode 0x8b031041
```

0 comments on commit 2d1b983

Please sign in to comment.