Merge pull request #1 from tiiuae/feat/initial-implementation #1
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
| # SPDX-FileCopyrightText: 2026 TII (SSRC) and the Ghaf contributors | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: checks | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}.${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| checks: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Harden the runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@630ae543ea3a38a9a4166f03376c02c50f408342 # v31.11.0 | |
| - name: Check Nix formatting | |
| run: nix fmt -- --check . | |
| - name: Check licence metadata | |
| run: nix run --inputs-from . nixpkgs#reuse -- lint | |
| - name: Check C and shell formatting | |
| run: >- | |
| nix shell --inputs-from . nixpkgs#shellcheck nixpkgs#clang-tools | |
| --command bash -lc | |
| 'shellcheck tests/integration.sh && clang-format --dry-run --Werror src/*.c tests/*.c include/ghaf/gpu-partition-manager/*.h' | |
| - name: Run sanitizer integration tests | |
| run: nix build -L .#checks.x86_64-linux.tests |