Refactor Instruction Handler Classes to Support RV32 and RV64 #51
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
on: | |
pull_request: | |
branches: | |
- main | |
env: | |
CACHE_VERSION: v1 | |
name: Run Clangformat Check | |
jobs: | |
build_test_job: | |
strategy: | |
# Strategy is a matrix of debug and release builds/regression | |
matrix: | |
os: [ubuntu-24.04] | |
BUILD_TYPE: [Release] | |
COMPILER: [clang] | |
name: Ubuntu-clangformat-check | |
runs-on: ${{ matrix.os }} | |
# Set up a global environment variable for build scripts | |
env: | |
ATLAS_BUILD_TYPE: ${{ matrix.BUILD_TYPE }} | |
COMPILER: ${{ matrix.COMPILER }} | |
steps: | |
# Get Atlas | |
- name: Clone Atlas | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
# Get Sparta | |
- name: Checkout Sparta | |
uses: actions/checkout@v4 | |
with: | |
repository: sparcians/map | |
path: map | |
ref: 05ba8532be5d90fcebf28e7a7a7aa799a7b4d29e | |
# Setup Conda and build environment | |
- name: Grab Python v3.8 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.8 | |
# Cache the conda dependencies to | |
- name: Cache conda deps | |
uses: actions/cache@v3 | |
with: | |
key: ${{ matrix.os }}-${{ matrix.BUILD_TYPE }}-${{ matrix.COMPILER }}-conda-${{ hashFiles('conda/environment.yml') }} | |
path: /usr/share/miniconda/envs/riscv_func_model # Default path for conda | |
# Setup CCache to cache builds | |
- name: ccache | |
uses: hendrikmuhs/[email protected] | |
with: | |
key: ${{ matrix.os }}-${{ matrix.BUILD_TYPE }}-${{ matrix.COMPILER }}-ccache-${{ github.ref_name }} | |
restore-keys: | | |
${{ matrix.os }}-${{ matrix.BUILD_TYPE }}-${{ matrix.COMPILER }}-ccache-main | |
${{ matrix.os }}-${{ matrix.BUILD_TYPE }}-${{ matrix.COMPILER }}-ccache | |
- name: Setup Conda Environment | |
run: | | |
# $CONDA is an environment variable pointing to the root of the miniconda directory | |
$CONDA/bin/conda config --set channel_priority strict | |
$CONDA/bin/conda env update --file ${{ github.workspace }}/conda/environment.yml | |
$CONDA/bin/conda init bash | |
# Build | |
- name: Run Clangformat Check | |
run: ./.github/actions/clangformat-check.sh | |
# Save error logs, etc | |
- name: Save artifacts | |
if: failure() | |
uses: actions/upload-artifact@main | |
with: | |
name: ErrorLogs-${{matrix.BUILD_TYPE}}-${{matrix.COMPILER}} | |
path: ${{matrix.BUILD_TYPE}}/test/ | |
#- name: CTest | |
# # Run CTests without Valgrind tests otherwise the runtime will be TOO long | |
# if: ${{ env.DABBLE_BUILD_TYPE == 'release' }} && ${{ env.VALGRIND == 'false' }} | |
# uses: ./.github/actions/ctest # Uses an action.yml in directory |