Skip to content

Commit

Permalink
CI updates
Browse files Browse the repository at this point in the history
  • Loading branch information
eliaskosunen committed Oct 28, 2024
1 parent 2ccbb24 commit 67dae4c
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 39 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master
- v*/dev
paths:
- '.github/**'
- '.github/workflows/arch.yml'
- 'cmake/**'
- 'include/**'
- 'src/**'
Expand All @@ -17,7 +17,7 @@ on:
- master
- v*/dev
paths:
- '.github/**'
- '.github/workflows/arch.yml'
- 'cmake/**'
- 'include/**'
- 'src/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Coverage
on:
push:
paths:
- '.github/**'
- '.github/workflows/coverage.yml'
- 'cmake/**'
- 'include/**'
- 'scripts/**'
Expand All @@ -12,7 +12,7 @@ on:
- '**/CMakeLists.txt'
pull_request:
paths:
- '.github/**'
- '.github/workflows/coverage.yml'
- 'cmake/**'
- 'include/**'
- 'scripts/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- "**.md"
- "docs/**"
- "**/docs.yml"
- '.github/**'
- '.github/workflows/docs.yml'
release:
types: [published]
workflow_dispatch:
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Prepare repository (on workflow_dispatch)
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
git fetch origin ${{ github.ref_name }}:refs/remotes/origin/${{ github.ref_name }} --tags --force
git fetch origin master:refs/remotes/origin/master --tags --force
git remote set-head origin -a
git checkout ${{ github.ref_name }}
git pull --force
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/fuzz-batch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ jobs:
steps:
- name: Build fuzzers
id: build
uses: google/clusterfuzzlite/actions/build_fuzzers@v1
uses: eliaskosunen/clusterfuzzlite/actions/build_fuzzers@main
with:
language: c++
sanitizer: ${{ matrix.sanitizer }}

- name: Run fuzzers
id: run
uses: google/clusterfuzzlite/actions/run_fuzzers@v1
uses: eliaskosunen/clusterfuzzlite/actions/run_fuzzers@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fuzz-seconds: 1800
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/fuzz-continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- master
paths:
- '.github/**'
- '.github/workflows/fuzz-continuous.yml'
- 'benchmark/**'
- 'cmake/**'
- 'examples/**'
Expand Down Expand Up @@ -33,7 +33,7 @@ jobs:
steps:
- name: Build fuzzers
id: build
uses: google/clusterfuzzlite/actions/build_fuzzers@v1
uses: eliaskosunen/clusterfuzzlite/actions/build_fuzzers@main
with:
language: c++
sanitizer: ${{ matrix.sanitizer }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/fuzz-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ jobs:
steps:
- name: Build fuzzers
id: build
uses: google/clusterfuzzlite/actions/build_fuzzers@v1
uses: eliaskosunen/clusterfuzzlite/actions/build_fuzzers@main
with:
language: c++

- name: Run fuzzers
id: run
uses: google/clusterfuzzlite/actions/run_fuzzers@v1
uses: eliaskosunen/clusterfuzzlite/actions/run_fuzzers@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fuzz-seconds: 1200
fuzz-seconds: 86400
mode: 'prune'
output-sarif: true
storage-repo: https://${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/eliaskosunen/scnlib-fuzz-corpus.git
Expand All @@ -36,14 +36,14 @@ jobs:
steps:
- name: Build fuzzers
id: build
uses: google/clusterfuzzlite/actions/build_fuzzers@v1
uses: eliaskosunen/clusterfuzzlite/actions/build_fuzzers@main
with:
language: c++
sanitizer: coverage

- name: Run fuzzers
id: run
uses: google/clusterfuzzlite/actions/run_fuzzers@v1
uses: eliaskosunen/clusterfuzzlite/actions/run_fuzzers@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fuzz-seconds: 600
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/fuzz-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ name: ClusterFuzzLite PR fuzzing
on:
pull_request:
paths:
- '.github/**'
- 'benchmark/**'
- '.github/workflows/fuzz-pr.yml'
- 'cmake/**'
- 'examples/**'
- 'include/**'
- 'src/**'
- 'tests/**'
Expand All @@ -31,7 +29,7 @@ jobs:
steps:
- name: Build fuzzers
id: build
uses: google/clusterfuzzlite/actions/build_fuzzers@v1
uses: eliaskosunen/clusterfuzzlite/actions/build_fuzzers@main
with:
language: c++
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -40,7 +38,7 @@ jobs:

- name: Run fuzzers
id: run
uses: google/clusterfuzzlite/actions/run_fuzzers@v1
uses: eliaskosunen/clusterfuzzlite/actions/run_fuzzers@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fuzz-seconds: 600
Expand Down
21 changes: 9 additions & 12 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master
- v*/dev
paths:
- '.github/**'
- '.github/workflows/linux.yml'
- 'benchmark/**'
- 'cmake/**'
- 'examples/**'
Expand All @@ -19,7 +19,7 @@ on:
- master
- v*/dev
paths:
- '.github/**'
- '.github/workflows/linux.yml'
- 'benchmark/**'
- 'cmake/**'
- 'examples/**'
Expand Down Expand Up @@ -480,10 +480,10 @@ jobs:
restore-keys: |
ccache-${{ github.workflow }}-ubuntu22.04-${{ env.CXX }}-std${{ env.CMAKE_CXX_STANDARD }}-install${{ matrix.external_deps }}-${{ github.ref }}
ccache-${{ github.workflow }}-ubuntu22.04-${{ env.CXX }}-std${{ env.CMAKE_CXX_STANDARD }}-install${{ matrix.external_deps }}-${{ github.base_ref }}
ccache-${{ github.workflow }}-ubuntu22.04-${{ env.CXX }}-std${{ env.CMAKE_CXX_STANDARD }}-install${{ matrix.external_deps }}
ccache-${{ github.workflow }}-ubuntu22.04-${{ env.CXX }}-std${{ env.CMAKE_CXX_STANDARD }}-${{ github.sha }}
ccache-${{ github.workflow }}-ubuntu22.04-${{ env.CXX }}-std${{ env.CMAKE_CXX_STANDARD }}-${{ github.ref }}
ccache-${{ github.workflow }}-ubuntu22.04-${{ env.CXX }}-std${{ env.CMAKE_CXX_STANDARD }}-${{ github.base_ref }}
ccache-${{ github.workflow }}-ubuntu22.04-${{ env.CXX }}-std${{ env.CMAKE_CXX_STANDARD }}-install${{ matrix.external_deps }}
ccache-${{ github.workflow }}-ubuntu22.04-${{ env.CXX }}-std${{ env.CMAKE_CXX_STANDARD }}
- name: Setup ccache
Expand Down Expand Up @@ -539,7 +539,7 @@ jobs:
test "$output" -eq 42
disabled-envs:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
Expand All @@ -551,7 +551,7 @@ jobs:
- "-DSCN_DISABLE_FROM_CHARS=ON -DSCN_DISABLE_STRTOD=ON"

env:
CXX: g++-11
CXX: g++-14
CMAKE_CXX_STANDARD: 17
CMAKE_C_COMPILER_LAUNCHER: ccache
CMAKE_CXX_COMPILER_LAUNCHER: ccache
Expand All @@ -573,14 +573,14 @@ jobs:
uses: actions/cache@v4
with:
path: ${{ env.CCACHE_DIR }}
key: ccache-${{ github.workflow }}-ubuntu22.04-${{ env.CXX }}-std${{ env.CMAKE_CXX_STANDARD }}-flags${{ hashfiles('$GITHUB_WORKSPACE/flags.txt') }}-${{ github.sha }}
key: ccache-${{ github.workflow }}-ubuntu22.04-${{ env.CXX }}-std${{ env.CMAKE_CXX_STANDARD }}-flags${{ hashFiles('$GITHUB_WORKSPACE/flags.txt') }}-${{ github.sha }}
restore-keys: |
ccache-${{ github.workflow }}-ubuntu22.04-${{ env.CXX }}-std${{ env.CMAKE_CXX_STANDARD }}-flags${{ hashfiles('$GITHUB_WORKSPACE/flags.txt') }}-${{ github.ref }}
ccache-${{ github.workflow }}-ubuntu22.04-${{ env.CXX }}-std${{ env.CMAKE_CXX_STANDARD }}-flags${{ hashfiles('$GITHUB_WORKSPACE/flags.txt') }}-${{ github.base_ref }}
ccache-${{ github.workflow }}-ubuntu22.04-${{ env.CXX }}-std${{ env.CMAKE_CXX_STANDARD }}-flags${{ hashFiles('$GITHUB_WORKSPACE/flags.txt') }}-${{ github.ref }}
ccache-${{ github.workflow }}-ubuntu22.04-${{ env.CXX }}-std${{ env.CMAKE_CXX_STANDARD }}-flags${{ hashFiles('$GITHUB_WORKSPACE/flags.txt') }}-${{ github.base_ref }}
ccache-${{ github.workflow }}-ubuntu22.04-${{ env.CXX }}-std${{ env.CMAKE_CXX_STANDARD }}-flags${{ hashFiles('$GITHUB_WORKSPACE/flags.txt') }}
ccache-${{ github.workflow }}-ubuntu22.04-${{ env.CXX }}-std${{ env.CMAKE_CXX_STANDARD }}-${{ github.sha }}
ccache-${{ github.workflow }}-ubuntu22.04-${{ env.CXX }}-std${{ env.CMAKE_CXX_STANDARD }}-${{ github.ref }}
ccache-${{ github.workflow }}-ubuntu22.04-${{ env.CXX }}-std${{ env.CMAKE_CXX_STANDARD }}-${{ github.base_ref }}
ccache-${{ github.workflow }}-ubuntu22.04-${{ env.CXX }}-std${{ env.CMAKE_CXX_STANDARD }}-flags${{ hashfiles('$GITHUB_WORKSPACE/flags.txt') }}
ccache-${{ github.workflow }}-ubuntu22.04-${{ env.CXX }}-std${{ env.CMAKE_CXX_STANDARD }}
- name: Setup ccache
Expand All @@ -592,9 +592,6 @@ jobs:
- name: Run CMake
working-directory: ${{ runner.workspace }}/build
env:
CC: clang
CXX: clang++
run: |
cmake -G Ninja -DSCN_CI=ON ${{ matrix.flags }} \
$GITHUB_WORKSPACE
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/lite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master
- v*/dev
paths:
- '.github/**'
- '.github/workflows/lite.yml'
- 'benchmark/**'
- 'cmake/**'
- 'examples/**'
Expand All @@ -19,7 +19,7 @@ on:
- master
- v*/dev
paths:
- '.github/**'
- '.github/workflows/lite.yml'
- 'benchmark/**'
- 'cmake/**'
- 'examples/**'
Expand Down Expand Up @@ -160,6 +160,7 @@ jobs:

- name: Create Build Environment
run: |
$ErrorActionPreference = 'Stop'
cmake -E make_directory ${{ runner.workspace }}/build
choco install ccache
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master
- v*/dev
paths:
- '.github/**'
- '.github/workflows/macos.yml'
- 'benchmark/**'
- 'cmake/**'
- 'examples/**'
Expand All @@ -19,7 +19,7 @@ on:
- master
- v*/dev
paths:
- '.github/**'
- '.github/workflows/macos.yml'
- 'benchmark/**'
- 'cmake/**'
- 'examples/**'
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
fail-fast: false
matrix:
os: [ 14, 12 ]
cxx: [ brew-clang++, clang++, g++-13, g++-12, g++-11 ]
cxx: [ brew-clang++, clang++, g++-14, g++-13, g++-12 ]
std: [ 17 ]

include:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master
- v*/dev
paths:
- '.github/**'
- '.github/workflows/windows.yml'
- 'benchmark/**'
- 'cmake/**'
- 'examples/**'
Expand All @@ -19,7 +19,7 @@ on:
- master
- v*/dev
paths:
- '.github/**'
- '.github/workflows/windows.yml'
- 'benchmark/**'
- 'cmake/**'
- 'examples/**'
Expand Down

0 comments on commit 67dae4c

Please sign in to comment.