From d8a67786793ea11cc1f97c1c371cfc69b07f0dba Mon Sep 17 00:00:00 2001 From: Paul Gessinger Date: Wed, 11 Dec 2024 16:50:32 +0100 Subject: [PATCH] remove some workflows temporarily --- .github/workflows/analysis.yml | 145 --------------------------------- .github/workflows/checks.yml | 105 ------------------------ .github/workflows/docs.yml | 61 -------------- 3 files changed, 311 deletions(-) delete mode 100644 .github/workflows/analysis.yml delete mode 100644 .github/workflows/checks.yml delete mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml deleted file mode 100644 index f33bb927f40..00000000000 --- a/.github/workflows/analysis.yml +++ /dev/null @@ -1,145 +0,0 @@ -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: 1.25G - CCACHE_KEY_SUFFIX: r2 - ACTS_LOG_FAILURE_THRESHOLD: WARNING - DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-24.04/deps.v5.tar.zst - -# 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/ubuntu2404:63 - steps: - - - uses: actions/checkout@v4 - - - name: Install dependencies - run: CI/dependencies.sh - - - name: Cache build - uses: actions/cache@v4 - with: - path: ${{ env.CCACHE_DIR }} - key: ccache-${{ runner.os }}-${{ github.job }}-${{ env.CCACHE_KEY_SUFFIX }}-${{ github.sha }} - restore-keys: | - ccache-${{ runner.os }}-${{ github.job }}-${{ env.CCACHE_KEY_SUFFIX }}- - - - name: Configure - run: > - ccache -z && - cmake -B build -S . - --preset=github-ci - -DCMAKE_BUILD_TYPE=Debug - -DCMAKE_CXX_FLAGS="-Werror --coverage -g -gz -g1" - -DPython_EXECUTABLE=$(which python3) - -DACTS_BUILD_ODD=OFF - - name: Build - run: cmake --build build - - name: ccache stats - run: ccache -s - - name: Unit tests - run: ctest --test-dir build -j$(nproc) - - - name: Remove .o files - run: > - du -sh build - && find build -name *.o -delete - && du -sh build - - name: Coverage - run: > - pip3 install gcovr==7.2 - && cd build - && /usr/bin/python3 ../CI/test_coverage.py - - - uses: actions/upload-artifact@v4 - with: - name: coverage-build - path: build - - - name: Save PR number to file - if: github.event_name == 'pull_request' - run: echo ${{ github.event.number }} > PR_NUMBER.txt - - - name: Persist PR number - if: github.event_name == 'pull_request' - uses: actions/upload-artifact@v4 - with: - name: PR_NUMBER - path: PR_NUMBER.txt - - build_performance: - runs-on: ubuntu-latest - container: ghcr.io/acts-project/ubuntu2404:63 - if: github.ref == 'refs/heads/main' - steps: - - uses: actions/checkout@v4 - - - name: Install dependencies - run: CI/dependencies.sh - - - name: Install dependencies - run: pip3 install git+https://github.com/paulgessinger/cmakeperf.git@2a409b5 - - name: Configure - run: > - cmake -B build -S . - --preset=github-ci - -DCMAKE_BUILD_TYPE=RelWithDebInfo - -DCMAKE_CXX_FLAGS="-Werror" - -DPython_EXECUTABLE=$(which python3) - -DACTS_BUILD_ODD=OFF - - name: Measure - run: cmakeperf collect build/compile_commands.json -o perf.csv - - name: Results - run: cmakeperf print perf.csv - - uses: actions/upload-artifact@v4 - 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@v4 - # - name: Install dependencies - # run: pip3 install git+https://github.com/paulgessinger/headwind.git@eeeaa80 - # - uses: actions/download-artifact@v4 - # 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 "action@github.com" - # git config --global user.name "GitHub Action" - # git clone git@github.com: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 diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml deleted file mode 100644 index 59ba76bb00a..00000000000 --- a/.github/workflows/checks.yml +++ /dev/null @@ -1,105 +0,0 @@ -name: Checks - -on: - push: - pull_request: - branches: - - main - - 'release/**' - - 'develop/**' - -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: true - -jobs: - lint: - runs-on: ubuntu-latest - env: - PRE_COMMIT_HOME: '/tmp/pre-commit' - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - uses: actions/setup-python@v5 - with: - python-version: '3.12' - - - uses: actions/cache@v4 - with: - path: | - ${{ env.PRE_COMMIT_HOME }} - key: ${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }} - - - name: Install pre-commit - run: pip install pre-commit - - - name: Run pre-commit - run: pre-commit run --all-files --show-diff-on-failure - - smearing_config: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: '3.12' - - name: Check - run: > - CI/check_smearing_config.py . - - missing_includes: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Install clang - run: > - sudo apt-get install -y clang libeigen3-dev libboost-dev - - name: Check - run: > - CI/missing_include_check.sh - - fpe_masks: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: '3.12' - - name: Install dependencies - run: > - pip install -r CI/fpe_masks/requirements.txt - - name: Check - run: > - CI/check_fpe_masks.py --token ${{ secrets.GITHUB_TOKEN }} - - unused_files: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: '3.12' - - name: Check - run: > - CI/check_unused_files.py - - codegen: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: '3.12' - - name: Install dependencies - run: > - pip install -r codegen/requirements.txt - - name: Check - run: > - CI/check_codegen - - uses: actions/upload-artifact@v4 - if: failure() - with: - name: changed - path: changed diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index dfa5b303ee2..00000000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: Docs - -on: - push: - pull_request: - branches: - - main - - 'release/**' - - 'develop/**' - -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: true - -jobs: - docs: - runs-on: ubuntu-latest - env: - DOXYGEN_WARN_AS_ERROR: FAIL_ON_WARNINGS - DOXYGEN_VERSION: 1.9.8 - steps: - - uses: actions/checkout@v4 - - - name: Cache doxygen - id: cache-doxygen - uses: actions/cache@v4 - with: - path: /usr/local/bin/doxygen - key: doxygen_${{ env.DOXYGEN_VERSION }} - - - name: Install doxygen - if: steps.cache-doxygen.outputs.cache-hit != 'true' - run: > - curl -SL https://sourceforge.net/projects/doxygen/files/rel-${{ env.DOXYGEN_VERSION }}/doxygen-${{ env.DOXYGEN_VERSION }}.linux.bin.tar.gz/download | tar -xzC . - && mv doxygen-${{ env.DOXYGEN_VERSION }}/bin/doxygen /usr/local/bin/doxygen - - - name: Install dependencies - run: > - pip3 install --upgrade pip - && pip install -r docs/requirements.txt - - - name: Build documentation - run: > - cd docs - && sphinx-build - -b html - -d _build/doctrees/ - -j auto - -W - --keep-going - -t run_doxygen - -t lazy_autodoc - -t white_papers - -b linkcheck - . _build/html/ - - - - uses: actions/upload-artifact@v4 - with: - name: acts-docs - path: docs/_build/html/