Allow using libtcc and full binary translation at the same time #1211
Workflow file for this run
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
name: Experimental Unit Tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ${{github.workspace}}/tests/unit | |
strategy: | |
matrix: | |
compiler: [clang++-15] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y gcc-12-riscv64-linux-gnu g++-12-riscv64-linux-gnu | |
git submodule update --init ${{github.workspace}}/tests/Catch2 | |
git submodule update --init ${{github.workspace}}/tests/unit/ext/lodepng | |
- name: Install newer Clang | |
run: | | |
wget https://apt.llvm.org/llvm.sh | |
chmod +x ./llvm.sh | |
sudo ./llvm.sh 17 | |
- name: Configure | |
env: | |
CXX: ${{ matrix.compiler }} | |
run: cmake -B ${{github.workspace}}/build -DRISCV_TAILCALL_DISPATCH=ON -DRISCV_THREADED=OFF -DRISCV_EXPERIMENTAL=ON -DRISCV_FLAT_RW_ARENA=ON -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build the unittests | |
run: cmake --build ${{github.workspace}}/build --parallel 4 | |
- name: Run tests | |
working-directory: ${{github.workspace}}/build | |
run: ctest --verbose . -j2 |