Make nix build work #57
This file contains hidden or 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
| name: CI | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| jobs: | |
| build_and_test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Check license headers | |
| uses: viperproject/check-license-header@v2 | |
| with: | |
| path: ./ | |
| config: ./.github/license-check/license-config.json | |
| strict: false | |
| - name: Check code formatting using clang-format | |
| uses: DoozyX/[email protected] | |
| with: | |
| source: './apps ./include ./examples ./tests ./docs' | |
| exclude: './third_party ./external ./.git ./build' | |
| clangFormatVersion: 17 | |
| - name: Build project | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| load: true | |
| file: containers/cicd/Dockerfile.build | |
| tags: openpfc-builder | |
| - name: Run unit tests | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| load: true | |
| file: containers/cicd/Dockerfile.test | |
| tags: openpfc-tester | |
| generate_docs: | |
| runs-on: ubuntu-latest | |
| needs: | |
| - build_and_test | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Generate documentation | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| load: true | |
| file: containers/cicd/Dockerfile.docs | |
| tags: openpfc-docs |