forked from logicmachine/cpp-simplifier
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
83 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- cheri-tests | ||
|
||
# cancel in-progress job when a new push is performed | ||
concurrency: | ||
group: ci-${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
version: [4.14.1] | ||
|
||
|
||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
# clang-15 seems to be required for ClangConfig.cmake | ||
# libclang-14-dev and libclang-cpp14-dev seem to be for the opam conf-libclang package | ||
# llvm-15-dev seems to be for the LLVM cmake files/package | ||
- name: System dependencies (ubuntu) | ||
run: | | ||
sudo apt-get install clang-15 cmake libclang-14-dev libclang-15-dev libclang-cpp14-dev llvm-15-dev opam python3 | ||
- name: Restore cached opam | ||
id: cache-opam-restore | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: ~/.opam | ||
key: ${{ matrix.version }} | ||
|
||
- name: Setup opam | ||
if: steps.cache-opam-restore.outputs.cache-hit != 'true' | ||
run: | | ||
opam init --yes --no-setup --shell=sh --compiler=${{ matrix.version }} | ||
opam install --with-test --deps-only --yes . | ||
- name: Save cached opam | ||
if: steps.cache-opam-restore.outputs.cache-hit != 'true' | ||
id: cache-opam-save | ||
uses: actions/cache/save@v4 | ||
with: | ||
path: ~/.opam | ||
key: ${{ steps.cache-opam-restore.outputs.cache-primary-key }} | ||
|
||
- name: Install c-tree-carver | ||
run: | | ||
opam switch ${{ matrix.version }} | ||
eval $(opam env --switch=${{ matrix.version }}) | ||
opam install --with-test --yes . | ||
- name: Run CI tests | ||
run: | | ||
opam switch ${{ matrix.version }} | ||
eval $(opam env --switch=${{ matrix.version }}) | ||
dune runtest && cd cpp && python3 ./test/run_test.py make && python3 ./test/run_test.py for --carver clang-tree-carve.exe |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,14 +7,15 @@ authors: ["Dhruv Makwana <[email protected]"] | |
license: ["MIT" "BSD-2-Clause"] | ||
tags: ["topics" "c" "clang" "tool" "tree-carving"] | ||
homepage: "https://github.com/rems-project/c-tree-carver" | ||
doc: "https://github.com/rems-project/c-tree-carver" | ||
bug-reports: "https://github.com/rems-project/c-tree-carver/issues" | ||
depends: [ | ||
"dune" {>= "3.7"} | ||
"ocaml" {>= "4.12.0"} | ||
"ocaml" {>= "4.14.1"} | ||
"conf-c++" | ||
"conf-cmake" {dev} | ||
"conf-llvm" {= "12.0.1"} | ||
"conf-python3" {with-test} | ||
"conf-libclang" {= "15"} | ||
"conf-python-3" {with-test} | ||
"fileutils" {>= "0.6.4"} | ||
"shexp" {>= "v0.15.0"} | ||
"ocamlformat" {>= "0.25.1" & dev} | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.