Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,26 +51,30 @@ jobs:
run: |
echo "CPM_SOURCE_CACHE=./build/CPM" > .env

- name: Configure
- name: Strip compiler version
run: |
make configure-${{ matrix.build_type }}
base_compiler="${{ matrix.compiler }}"
base_compiler="${base_compiler%%-*}"
base_compiler="${base_compiler/llvm/clang}"
echo "Base compiler: $base_compiler"
echo "BASE_COMPILER=$base_compiler" >> "$GITHUB_ENV"

# We want ccache to be capable of caching PCH
# We want ccache to be capable of caching with a PCH
- name: Set ccache Config
run: |
ccache --set-config 'sloppiness=pch_defines,time_macros,include_file_mtime,include_file_ctime'

- name: Build
run: |
make build-${{ matrix.build_type }} CMAKE_CONFIGURE_EXTRA_ARGS="-DASMGRADER_ENABLE_TRACE=ON"
./scripts/build ${{ matrix.build_type }} $BASE_COMPILER ${{ matrix.generator }}

- name: ccache Stats
run: |
ccache -s -v

- name: Test
run: |
LOG_LEVEL=trace make test-${{ matrix.build_type }} CTEST_EXTRA_ARGS="--output-junit \"$PWD/reports/junit-ctest.xml\""
LOG_LEVEL=trace ./scripts/utest --no-build ${{ matrix.build_type }} $BASE_COMPILER ${{ matrix.generator }}

- uses: actions/upload-artifact@v4 # upload test results
if: ${{ !cancelled() }} # run this step even if previous step failed
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ build/
*.a
*.exe

# Cached files
.cache/

##### From Python.gitignore
# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down Expand Up @@ -142,6 +145,7 @@ celerybeat.pid
*.sage.py

# Environments
.envrc
.env
.venv
env/
Expand Down
Loading
Loading