Skip to content

Commit

Permalink
update github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Sep 3, 2024
1 parent 7f1a843 commit 1041545
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 22 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: 'Dependency Review'

on: [pull_request]

permissions:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint_and_format_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
- uses: chartboost/ruff-action@e18ae971ccee1b2d7bbef113930f00c670b78da4 # v1.0.0
name: Lint with Ruff
with:
version: 0.4.4
version: 0.6.0
5 changes: 2 additions & 3 deletions .github/workflows/macos_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,13 @@ jobs:
strategy:
matrix:
include:
- {shared: ON}
- {shared: OFF}
shared: [ON, OFF]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Prepare
run: cmake -DBUILD_SHARED_LIBS=${{matrix.shared}} -DCMAKE_INSTALL_PREFIX:PATH=destination -B build
- name: Build
run: cmake --build build -j=2
run: cmake --build build -j=3
- name: Install
run: cmake --install build
- name: Prepare test package
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ jobs:
env:
CXX: ${{matrix.cxx}}
- name: Build
run: cmake --build build -j=2
run: cmake --build build -j=4
- name: Test
run: ctest --output-on-failure --test-dir build
5 changes: 2 additions & 3 deletions .github/workflows/ubuntu-s390x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@ jobs:
githubToken: ${{ github.token }}
install: |
apt-get update -q -y
apt-get install -y cmake make g++ git
apt-get install -y ninja-build
apt-get install -y cmake make g++ git ninja-build
run: |
cmake -DCMAKE_BUILD_TYPE=Release -G Ninja -B build
rm -r -f dependencies
cmake --build build -j=2
cmake --build build -j=4
ctest --output-on-failure --test-dir build
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu-sanitized.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ jobs:
env:
CXX: g++-12
- name: Build
run: cmake --build build -j=2
run: cmake --build build -j=4
- name: Test
run: ctest --output-on-failure --test-dir build
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu-undef.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ jobs:
env:
CXX: g++-12
- name: Build
run: cmake --build build -j=2
run: cmake --build build -j=4
- name: Test
run: ctest --output-on-failure --test-dir build
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
env:
CXX: ${{matrix.cxx}}
- name: Build
run: cmake --build build -j=2
run: cmake --build build -j=4
- name: Test
run: ctest --output-on-failure --test-dir build
- name: Run default benchmark
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Prepare
run: cmake -G Ninja -DBUILD_SHARED_LIBS=${{matrix.shared}} -DCMAKE_INSTALL_PREFIX:PATH=destination -B build
- name: Build
run: cmake --build build -j=2
run: cmake --build build -j=4
- name: Install
run: cmake --install build
- name: Prepare test package
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu_pedantic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ jobs:
CXX: g++-12
CXXFLAGS: -Werror
- name: Build
run: cmake --build build -j=2
run: cmake --build build -j=4
- name: Test
run: ctest --output-on-failure --test-dir build
14 changes: 7 additions & 7 deletions .github/workflows/visual_studio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ jobs:
fail-fast: false
matrix:
include:
- {gen: Visual Studio 17 2022, arch: x64, devchecks: OFF, shared: OFF, config: Release}
- {gen: Visual Studio 17 2022, arch: x64, devchecks: ON, shared: OFF, config: Debug}
- {gen: Visual Studio 17 2022, arch: x64, devchecks: ON, shared: ON, config: Debug}
- {gen: Visual Studio 17 2022, arch: Win32, devchecks: ON, shared: OFF, config: Debug}
- {gen: Visual Studio 17 2022, arch: Win32, devchecks: ON, shared: ON, config: Debug}
gen: [Visual Studio 17 2022]
arch: [x64, Win32]
shared: [ON, OFF]
dev_checks: [ON, OFF]
config: [Debug, Release]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Configure
run: |
cmake -DADA_DEVELOPMENT_CHECKS="${{matrix.devchecks}}" -G "${{matrix.gen}}" -A ${{matrix.arch}} -DBUILD_SHARED_LIBS=${{matrix.shared}} -B build
cmake -DADA_DEVELOPMENT_CHECKS="${{matrix.dev_checks}}" -G "${{matrix.gen}}" -A ${{matrix.arch}} -DBUILD_SHARED_LIBS=${{matrix.shared}} -B build
- name: Build
run: cmake --build build --config "${{matrix.config}}" --verbose
- name: Run tests
working-directory: build
run: ctest -C "${{matrix.config}}" --output-on-failure
run: ctest -C "${{matrix.config}}" --output-on-failure
6 changes: 4 additions & 2 deletions .github/workflows/visual_studio_clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ jobs:
fail-fast: false
matrix:
include:
- {gen: Visual Studio 17 2022, arch: x64, devchecks: ON}
arch: [x64]
dev_checks: [ON]
gen: [Visual Studio 17 2022]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Configure
run: |
cmake -DADA_DEVELOPMENT_CHECKS="${{matrix.devchecks}}" -G "${{matrix.gen}}" -A ${{matrix.arch}} -T ClangCL -B build
cmake -DADA_DEVELOPMENT_CHECKS="${{matrix.dev_checks}}" -G "${{matrix.gen}}" -A ${{matrix.arch}} -T ClangCL -B build
- name: Build Debug
run: cmake --build build --config Debug --verbose
- name: Run Debug tests
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/wpt-updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ jobs:
title: "Update web platform tests"
body: |
This is an automated pull request for updating the WPT.
- [Web Platform Tests](https://github.com/web-platform-tests/wpt/tree/master/url)
- [Commit History](https://github.com/web-platform-tests/wpt/commits/master/url/resources)
cc @anonrig @lemire
team-reviewers: core
delete-branch: true

0 comments on commit 1041545

Please sign in to comment.