Skip to content

Commit

Permalink
Implemented basic CI logic
Browse files Browse the repository at this point in the history
  • Loading branch information
iWas-Coder committed Sep 3, 2024
1 parent 4d66797 commit a9d1ca5
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: ci

on:
push:
branches: [master]
paths:
- '.github/workflows/ci.yaml'
pull_request:
branches: [master]
types: [opened, synchronize]
paths-ignore:
- '.github/**'
- 'CITATION.cff'
- 'CODE_OF_CONDUCT.md'
- 'CONTRIBUTING.org'
- 'COPYING'
- 'README.org'
- 'SECURITY.md'
schedule:
- cron: '0 9 * * 1'

jobs:
ci:
permissions:
security-events: write
matrix:
build-type: [Debug, Release]
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: checkout-repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: setup-codeql
uses: github/codeql-action/init@v3
with:
languages: c-cpp
config: |
paths-ignore: [vendor]
- name: configure
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build-type }}
- name: build
run: cmake --build build
- name: analyze
uses: github/codeql-action/analyze@v3

0 comments on commit a9d1ca5

Please sign in to comment.