Skip to content

Fix issue #15: update CI workflow #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 28 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

name: ci

on:
push:
branches:
Expand All @@ -25,6 +26,12 @@ on:
pull_request:
branches:
- main
workflow_dispatch:

env:
# C.f. https://github.com/bazelbuild/bazelisk#readme
USE_BAZEL_VERSION: '6.5.0'

jobs:
build_dist:
runs-on: ${{ matrix.os_dist.os }}
Expand Down Expand Up @@ -56,8 +63,8 @@ jobs:
CIBW_TEST_REQUIRES: pytest stim~=1.14 sinter pygltflib
CIBW_TEST_COMMAND: pytest {project}/src
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- run: python tools/overwrite_dev_versions_with_date.py
- run: python -m pip install pybind11~=2.11.1 cibuildwheel~=2.16.2 setuptools
- run: python -m cibuildwheel --print-build-identifiers
Expand All @@ -69,8 +76,8 @@ jobs:
build_sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- run: python -m pip install setuptools pybind11~=2.11.1
- run: python tools/overwrite_dev_versions_with_date.py
- run: mkdir output
Expand All @@ -91,23 +98,23 @@ jobs:
check_sdist_installs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- run: python -m pip install pybind11~=2.11.1 cibuildwheel~=2.16.2 setuptools
- run: python setup.py sdist
- run: pip install dist/*.tar.gz
run_main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- run: cmake .
- run: make chromobius -j 2
- run: out/chromobius --help
build_bazel:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: bazel-contrib/setup-bazel@0.8.5
- uses: actions/checkout@v4
- uses: bazel-contrib/setup-bazel@0.12.1
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
Expand All @@ -116,9 +123,9 @@ jobs:
- run: bazel build :all
- run: bazel test :chromobius_test
build_clang:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: |
cd ..
git clone https://github.com/google/googletest.git -b release-1.12.1
Expand All @@ -136,14 +143,14 @@ jobs:
perf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: cmake .
- run: make chromobius_perf -j 2
- run: out/chromobius_perf
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: |
cd ..
git clone https://github.com/google/googletest.git -b release-1.12.1
Expand All @@ -157,7 +164,7 @@ jobs:
test_o3:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: |
cd ..
git clone https://github.com/google/googletest.git -b release-1.12.1
Expand All @@ -171,9 +178,9 @@ jobs:
test_generated_docs_are_fresh:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: bazel-contrib/setup-bazel@0.8.5
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: bazel-contrib/setup-bazel@0.12.1
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
Expand All @@ -187,7 +194,7 @@ jobs:
test_generated_file_lists_are_fresh:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: tools/regen_file_lists.sh /tmp
- run: diff /tmp/perf_files file_lists/perf_files
- run: diff /tmp/pybind_files file_lists/pybind_files
Expand All @@ -196,9 +203,9 @@ jobs:
test_pybind:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: bazel-contrib/setup-bazel@0.8.5
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: bazel-contrib/setup-bazel@0.12.1
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
Expand Down
Loading