Merge branch 'ci/ci_build' #5
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: Run Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Cache folders | |
uses: actions/cache@v4 | |
with: | |
path: | | |
build | |
build-debug | |
key: ${{ runner.os }}-build-${{ hashFiles('**/CMakeLists.txt') }} | |
restore-keys: | | |
${{ runner.os }}-build- | |
- name: Build test | |
working-directory: .ci | |
run: bash build_test.sh | |
- name: Check generated files | |
working-directory: .ci | |
run: python3 check_files.py | |
- name: Run cargo tests | |
working-directory: .ci | |
run: bash cargo_tests.sh | |
# - name: Run tests | |
# working-directory: .ci | |
# run: bash run_all_tests.sh | |