Skip to content

CI

CI #931

Workflow file for this run

name: CI
on: [push]
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Retrieve versions.properties
run: |
wget -q https://raw.githubusercontent.com/sireum/kekinian/master/versions.properties
- name: Cache Java
id: cache-java
uses: actions/cache@v3
with:
path: bin/linux/java
key: ${{ runner.os }}-${{ hashFiles('versions.properties') }}-java
- name: Cache Scala
id: cache-scala
uses: actions/cache@v3
with:
path: bin/scala
key: ${{ runner.os }}-${{ hashFiles('versions.properties') }}-scala
- name: Cache Coursier
id: cache-coursier
uses: actions/cache@v3
with:
path: cache/coursier
key: ${{ runner.os }}-${{ hashFiles('versions.properties') }}-coursier
- name: Cache SMT2 solvers
id: cache-smt2
uses: actions/cache@v3
with:
path: |
bin/linux/cvc
bin/linux/.cvc.ver
bin/linux/cvc5
bin/linux/.cvc5.ver
bin/linux/z3
key: ${{ runner.os }}-${{ hashFiles('versions.properties') }}-smt2
- name: Test
run: |
export COURSIER_CACHE=$GITHUB_WORKSPACE/cache/coursier
cd $GITHUB_WORKSPACE
bin/build.cmd test
build-mac:
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Retrieve versions.properties
run: |
curl -JLOs https://raw.githubusercontent.com/sireum/kekinian/master/versions.properties
- name: Cache Java
id: cache-java
uses: actions/cache@v3
with:
path: bin/mac/java
key: ${{ runner.os }}-${{ hashFiles('versions.properties') }}-java
- name: Cache Scala
id: cache-scala
uses: actions/cache@v3
with:
path: bin/scala
key: ${{ runner.os }}-${{ hashFiles('versions.properties') }}-scala
- name: Cache Coursier
id: cache-coursier
uses: actions/cache@v3
with:
path: cache/coursier
key: ${{ runner.os }}-${{ hashFiles('versions.properties') }}-coursier
- name: Cache SMT2 solvers
id: cache-smt2
uses: actions/cache@v3
with:
path: |
bin/mac/cvc
bin/mac/.cvc.ver
bin/mac/cvc5
bin/mac/.cvc5.ver
bin/mac/z3
key: ${{ runner.os }}-${{ hashFiles('versions.properties') }}-smt2
- name: Test
run: |
export COURSIER_CACHE=$GITHUB_WORKSPACE/cache/coursier
cd $GITHUB_WORKSPACE
bin/build.cmd test
build-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Retrieve versions.properties
run: |
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/sireum/kekinian/master/versions.properties" -OutFile "versions.properties"
- name: Cache Java
id: cache-java
uses: actions/cache@v3
with:
path: bin\win\java
key: ${{ runner.os }}-${{ hashFiles('versions.properties') }}-java
- name: Cache Scala
id: cache-scala
uses: actions/cache@v3
with:
path: bin\scala
key: ${{ runner.os }}-${{ hashFiles('versions.properties') }}-scala
- name: Cache Coursier
id: cache-coursier
uses: actions/cache@v3
with:
path: cache\coursier
key: ${{ runner.os }}-${{ hashFiles('versions.properties') }}-coursier
- name: Cache SMT2 solvers
id: cache-smt2
uses: actions/cache@v3
with:
path: |
bin\win\cvc.exe
bin\win\.cvc.ver
bin\win\cvc5.exe
bin\win\.cvc5.ver
bin\win\z3
key: ${{ runner.os }}-${{ hashFiles('versions.properties') }}-smt2
- name: Test
shell: cmd
run: |
set COURSIER_CACHE=%GITHUB_WORKSPACE%\cache\coursier
cd /d %GITHUB_WORKSPACE%
call bin\build.cmd test