Building from source
- Install
git. - Install the Eclipse Temurin or Zulu builds of OpenJDK 17.
- Apalache currently requires Scala 2.13.8, see this table of compatible JDK versions.
- We recommend OpenJDK 17, the latest LTS release.
- Install sbt.
- On Debian Linux or Ubuntu, follow this guide
- On Arch:
sudo pacman -Syu sbt - On macOS / Homebrew:
brew install sbt
- Clone the git repository:
git clone https://github.com/apalache-mc/apalache.git. - Change into the project directory:
cd apalache. - Install direnv and run
direnv allow, or use another way to set up the shell environment. - To build and package Apalache for development purposes, run
make.- To skip running the tests, you can run
make package.
- To skip running the tests, you can run
- To build and package Apalache for releases and end-user distribution, run
make dist. - The distribution package will be built to
./target/universal/apalache-<VERSION>, and you can move this wherever you'd like, and ensure that the<dist-package-location>/bindirectory is added to yourPATH.
Running from within the Apalache repo
If you prefer to keep the built package inside of the Apalache source
repository, you have three options after running make:
- Add the
./bindirectory in the source repository to yourPATH, which will makeapalache-mcavailable. - Install direnv and run
direnv allow, which will putapalache-mcin your path when you are inside the Apalache repo directory. - Run
./bin/apalache-mcdirectly.