Introduce addr_t for linear addresses in hardware registers/datastruc… #194
This file contains hidden or 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
name: build | |
on: [push, pull_request] | |
jobs: | |
python: | |
name: "Python Tests" | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: pre-commit checks - setup cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pre-commit | |
key: pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }} | |
- name: pre-commit checks - run checks | |
uses: pre-commit/action@v3.0.1 | |
C: | |
name: "C Builds" | |
strategy: | |
matrix: | |
arch: [x86] | |
compiler: [llvm-12, llvm-13, llvm-14] | |
include: | |
- arch: x86 | |
compiler: gcc-9 | |
- arch: x86 | |
compiler: gcc-10 | |
- arch: x86 | |
compiler: gcc-11 | |
- arch: x86 | |
compiler: gcc-12 | |
- arch: x86 | |
compiler: clang-12 | |
- arch: x86 | |
compiler: clang-13 | |
- arch: x86 | |
compiler: clang-14 | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Install | |
run: | | |
c=${{matrix.compiler}} | |
v=${c##llvm-} | |
case $c in | |
# Need all {llvm,clang,lld}-$v packages | |
llvm-*) EXTRA="clang-${v} lld-${v}" ;; | |
esac | |
sudo apt-get update -q | |
sudo apt-get install -y build-essential python3 ${{matrix.compiler}} ${EXTRA} | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
# Select appropriate LLVM= or CC= | |
c=${{matrix.compiler}} | |
case $c in | |
llvm-*) COMP="LLVM=${c#llvm}" ;; | |
*) COMP="CC=$c" ;; | |
esac | |
make -j`nproc` ARCH=${{matrix.arch}} $CROSS $COMP |