Skip to content

Commit

Permalink
Build C binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
jordancarlin committed May 10, 2024
1 parent 08f96f6 commit fe7aad1
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Install packages
run: sudo apt install -y opam zlib1g-dev pkg-config libgmp-dev z3 device-tree-compiler
- name: Check out repository code
uses: actions/checkout@HEAD
with:
submodules: true
- name: Ensure pre-commit checks pass
run: pip install pre-commit && pre-commit run --all-files --show-diff-on-failure --color=always
- name: Init opam
run: opam init --disable-sandboxing -y
- name: Install sail
run: opam install -y sail
- name: Build and test simulators
run: eval $(opam env) && make c_emulator/riscv_sim_RV64 && ARCH=32 c_emulator/riscv_sim_RV32
- name: Upload ARCH=64 model
if: always()
uses: actions/upload-artifact@v4
with:
name: riscv_sim_RV64
path: c_emulator/riscv_sim_RV64
- name: Upload ARCH=32 model
if: always()
uses: actions/upload-artifact@v4
with:
name: riscv_sim_RV32
path: c_emulator/riscv_sim_RV32

0 comments on commit fe7aad1

Please sign in to comment.