Skip to content

Commit

Permalink
ci: try out possible speedups (#939)
Browse files Browse the repository at this point in the history
* ci: try out possible speedups

Signed-off-by: Henry Schreiner <[email protected]>

* ci: try ccache

Signed-off-by: Henry Schreiner <[email protected]>

---------

Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii authored May 31, 2024
1 parent 795fc3f commit 8f5ab80
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: cmake -S. -Bbuild -DCMAKE_CXX_CLANG_TIDY="$(which clang-tidy);--warnings-as-errors=*"

- name: Build
run: cmake --build build -j 2
run: cmake --build build -j 4

pylint:
runs-on: ubuntu-latest
Expand All @@ -60,7 +60,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.9", "3.12", "pypy3.9"]
python-version: ["3.9", "3.12", "pypy3.9"]
include:
- python-version: "3.8"
cmake-extras: "-DCMAKE_CXX_STANDARD=17"
Expand All @@ -76,14 +76,23 @@ jobs:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

- uses: rui314/setup-mold@v1

- uses: yezz123/setup-uv@v4

- uses: hendrikmuhs/[email protected]
with:
key: ${{ matrix.python-version }}
create-symlink: true

- name: Install python tools
run: python -m pip install -r dev-requirements.txt pytest-github-actions-annotate-failures numpy>=2.0.0rc1
run: uv pip install --system -r dev-requirements.txt pytest-github-actions-annotate-failures 'numpy>=2.0.0b1; python_version>="3.9"'

- name: Configure
run: cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Debug -DBOOST_HISTOGRAM_ERRORS=ON ${{ matrix.cmake-extras }}

- name: Build
run: cmake --build build -j 2
run: cmake --build build -j 4

- name: Test
working-directory: ./build
Expand Down

0 comments on commit 8f5ab80

Please sign in to comment.