-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #249 from eseiler/infra/deps
[INFRA] Update dependencies and CI
- Loading branch information
Showing
13 changed files
with
358 additions
and
275 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# SPDX-FileCopyrightText: 2006-2024 Knut Reinert & Freie Universität Berlin | ||
# SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: CodeQL | ||
|
||
on: | ||
schedule: | ||
- cron: "0 6 * * SAT" | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: codeql-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
SHARG_NO_VERSION_CHECK: 1 | ||
TZ: Europe/Berlin | ||
|
||
defaults: | ||
run: | ||
shell: bash -Eeuxo pipefail {0} | ||
|
||
jobs: | ||
codeql: | ||
name: CodeQL | ||
runs-on: ubuntu-latest | ||
permissions: | ||
security-events: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 | ||
with: | ||
languages: cpp | ||
|
||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v3 | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 | ||
with: | ||
category: "/language:cpp" |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Header | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
pull_request: | ||
types: | ||
- unlabeled | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: misc-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: ${{ github.event_name != 'push' }} | ||
|
||
env: | ||
SHARG_NO_VERSION_CHECK: 1 | ||
TZ: Europe/Berlin | ||
|
||
defaults: | ||
run: | ||
shell: bash -Eeuxo pipefail {0} | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.compiler }} | ||
runs-on: ubuntu-latest | ||
if: github.repository_owner == 'seqan' || github.event_name == 'workflow_dispatch' || github.event.label.name == 'lint' | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
compiler: ["clang-18", "gcc-14", "gcc-12", "intel"] | ||
include: | ||
- cxx_flags: "-Wno-interference-size" | ||
- compiler: "clang-18" | ||
cxx_flags: "" | ||
- compiler: "intel" | ||
cxx_flags: "-fp-model=strict -Wno-overriding-option" | ||
container: | ||
image: ghcr.io/seqan/${{ matrix.compiler }} | ||
volumes: | ||
- /home/runner:/home/runner | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Load ccache | ||
uses: actions/cache@v4 | ||
with: | ||
path: /home/runner/.ccache | ||
save-always: true | ||
key: ccache-${{ runner.os }}-${{ github.workflow }}-${{ matrix.compiler }}-${{ github.ref }} | ||
|
||
- name: Configure tests | ||
run: | | ||
mkdir build && cd build | ||
cmake .. -DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_CXX_FLAGS="-Werror ${{ matrix.cxx_flags }}" \ | ||
-DCHOPPER_HEADER_TEST_ONLY=ON | ||
- name: Build tests | ||
working-directory: build | ||
run: | | ||
ccache -z | ||
make -k test | ||
ccache -svvx | ||
- name: Run tests | ||
working-directory: build | ||
run: ctest . -j --output-on-failure |
Oops, something went wrong.