Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check sail-arm and sail-riscv in CI, use matrix instead of separate files #104

Open
wants to merge 1 commit into
base: sail2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Sail CI Build

on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"

jobs:
full-test:
strategy:
matrix:
os: [ubuntu-20.04, macOS-latest]
ocaml: [4.06.1, 4.10.0]
runs-on: ${{ matrix.os }}

steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Install deps (linux)
if: matrix.os == 'ubuntu-20.04'
run: sudo apt-get install -y --no-install-recommends build-essential libgmp-dev z3 libz3-dev opam
- name: Install deps (macOS)
if: matrix.os == 'macOS-latest'
run: brew install gpatch gmp z3 pkg-config opam
- name: init opam
run: opam init -y --no-setup --compiler=${{ matrix.ocaml }} --shell=sh
- name: opam config env
run: eval `opam config env`
- name: pin and install sail from git
run: opam pin -y add sail $PWD
- name: test sail installation
run: eval $(opam env) && sail -v

- name: make sail-arm
run: git clone https://github.com/rems-project/sail-arm.git && cd sail-arm/arm-v8.5-a && eval $(opam env) && make

- name: make sail-riscv
run: git clone https://github.com/rems-project/sail-riscv.git && cd sail-riscv && eval $(opam env) && make
16 changes: 0 additions & 16 deletions .github/workflows/macOS_build.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/ubuntu_18_04_build.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/ubuntu_20_04_build.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/ubuntu_20_04_build_latest.yml

This file was deleted.

12 changes: 0 additions & 12 deletions etc/ci_opam_build.sh

This file was deleted.

12 changes: 0 additions & 12 deletions etc/ci_opam_latest_build.sh

This file was deleted.