Skip to content

Commit

Permalink
GitHub: Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed Dec 31, 2024
1 parent 3563c98 commit ad69cb0
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '21 11 * * 5'

jobs:

linux:
name: Linux build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Update
run: sudo apt-get update

- name: Dependencies
run: sudo apt-get install build-essential cmake libboost-all-dev liblzma-dev

- name: Configure
run: cmake --version && cmake -B ${{github.workspace}}/build -Werror=dev -Werror=deprecated -DCONTINUOUS_INTEGRATION=1

- name: Build
run: cmake --build ${{github.workspace}}/build

- name: Check Style
run: cmake --build ${{github.workspace}}/build --target style

macos:
name: macOS build
runs-on: macos-latest

steps:
- uses: actions/checkout@v4

- name: Update
run: brew update

- name: Workaround for Python install isssues - https://github.com/actions/runner-images/issues/8838
run: brew install python@3 || brew link --overwrite python@3

- name: Dependencies
env:
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
run: brew install boost xz

- name: Configure
run: cmake --version && cmake -B ${{github.workspace}}/build -Werror=dev -Werror=deprecated -DCONTINUOUS_INTEGRATION=1

- name: Build
run: cmake --build ${{github.workspace}}/build
59 changes: 59 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: CodeQL

on:
schedule:
- cron: '21 11 * * 5'

jobs:

cpp:
name: C++ analysis
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Update
run: sudo apt-get update

- name: Dependencies
run: sudo apt-get install build-essential cmake libboost-all-dev liblzma-dev

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: cpp

- name: Configure
run: cmake -B ${{github.workspace}}/build

- name: Build
run: cmake --build ${{github.workspace}}/build

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

python:
name: Python analysis
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: python

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

0 comments on commit ad69cb0

Please sign in to comment.