fix: Reset navigation state correctly in KF reverse pass #12379
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: Analysis | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
- 'release/**' | |
- 'develop/**' | |
paths-ignore: | |
- "docs/**" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
env: | |
CTEST_OUTPUT_ON_FAILURE: 1 | |
CCACHE_DIR: ${{ github.workspace }}/ccache | |
CCACHE_MAXSIZE: 500M | |
CCACHE_KEY_SUFFIX: r1 | |
# NOTE this only builds core unittests to reduce the output size. if we | |
# found a way to have Github actions not fail regularly with this job | |
# all unit tests should be reactivated. | |
jobs: | |
build_debug: | |
runs-on: ubuntu-latest | |
container: ghcr.io/acts-project/ubuntu2204:v41 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache build | |
uses: actions/cache@v3 | |
with: | |
path: ${{ github.workspace }}/ccache | |
key: ${{ runner.os }}-ccache-linux_ubuntu_debug_${{ env.CCACHE_KEY_SUFFIX }}_${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-ccache-linux_ubuntu_debug_${{ env.CCACHE_KEY_SUFFIX }}_ | |
- name: Configure | |
run: > | |
ccache -z && | |
cmake -B build -S . | |
-GNinja | |
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache | |
-DCMAKE_BUILD_TYPE=Debug | |
-DCMAKE_CXX_FLAGS="-Werror -gz -g1" | |
-DACTS_BUILD_UNITTESTS=on | |
-DACTS_LOG_FAILURE_THRESHOLD=WARNING | |
- name: Build | |
run: cmake --build build | |
- name: ccache stats | |
run: ccache -s | |
- name: Unit tests | |
run: cmake --build build --target test | |
- name: Remove .o files | |
run: > | |
du -sh build | |
&& find build -name *.o -delete | |
&& du -sh build | |
- name: Coverage | |
run: > | |
pip3 install gcovr==5.0 | |
&& cd build | |
&& /usr/bin/python3 ../CI/test_coverage | |
- name: Upload coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
files: ./build/coverage/cov.xml | |
build_performance: | |
runs-on: ubuntu-latest | |
container: ghcr.io/acts-project/ubuntu2204:v41 | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: pip3 install git+https://github.com/paulgessinger/cmakeperf.git@ece8fc8 | |
- name: Configure | |
run: > | |
cmake -B build -S . | |
-GNinja | |
-DCMAKE_BUILD_TYPE=RelWithDebInfo | |
-DCMAKE_CXX_FLAGS="-Werror" | |
-DACTS_BUILD_EVERYTHING=ON | |
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON | |
- name: Measure | |
run: cmakeperf collect build/compile_commands.json -o perf.csv | |
- name: Results | |
run: cmakeperf print perf.csv | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: cmakeperf | |
path: perf.csv | |
metric_tracking: | |
runs-on: ubuntu-latest | |
needs: build_performance | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: pip3 install git+https://github.com/paulgessinger/headwind.git@eeeaa80 | |
- uses: actions/download-artifact@v2 | |
with: | |
name: cmakeperf | |
- name: Run collection | |
env: | |
SSH_AUTH_SOCK: /tmp/ssh_agent.sock | |
run: | | |
ssh-agent -a $SSH_AUTH_SOCK > /dev/null | |
ssh-add - <<< "${{ secrets.METRIC_DEPLOY_SSH_KEY }}" | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Action" | |
git clone [email protected]:acts-project/metrics.git | |
hdw collect CI/headwind.yml --commit $(git log --pretty=format:'%H' -1) | |
cd metrics | |
git add -A | |
git commit -m"update metrics" | |
git push |