Bump github/codeql-action from 3.27.5 to 3.27.9 #231
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: Documentation CI | |
on: | |
pull_request: | |
branches: [ "master" ] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
id-token: write | |
jobs: | |
linux-ci-doc: | |
runs-on: ubuntu-latest | |
timeout-minutes: 180 | |
env: | |
MPIEXEC_FLAGS: "--allow-run-as-root --oversubscribe" | |
PYNUCLEUS_BUILD_PARALLELISM: 2 | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
egress-policy: audit | |
- name: Check out repo | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Pull ccache cache | |
id: ccache-restore | |
uses: actions/cache/restore@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 | |
with: | |
path: /home/runner/.cache/ccache | |
key: ccache-documentation-ci | |
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | |
with: | |
python-version: '3.11' | |
- name: Install Ubuntu packages | |
run: | | |
sudo apt-get update | |
sudo apt-get install mpi-default-bin mpi-default-dev libmetis-dev libparmetis-dev libsuitesparse-dev ccache | |
- name: Install Python dependencies | |
run: make prereq && make prereq-extra | |
- name: Install | |
run: make dev | |
- name: Remove ccache cache | |
if: ${{ steps.ccache-restore.outputs.cache-hit }} | |
shell: bash | |
env: | |
GH_TOKEN: ${{ github.token }} | |
run: | | |
gh extension install actions/gh-actions-cache | |
gh actions-cache delete ccache --confirm | |
continue-on-error: true | |
- name: Push ccache cache | |
uses: actions/cache/save@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 | |
with: | |
path: /home/runner/.cache/ccache | |
key: ccache-documentation-ci | |
- name: Build documentation | |
run: | | |
make docs | |
- name: Upload artifact | |
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | |
with: | |
path: 'docs/build' |