Skip to content

feat: power manager module, refactor ghaf-powercontrol #577

feat: power manager module, refactor ghaf-powercontrol

feat: power manager module, refactor ghaf-powercontrol #577

Workflow file for this run

# SPDX-FileCopyrightText: 2022-2025 TII (SSRC) and the Ghaf contributors
#
# SPDX-License-Identifier: Apache-2.0
name: eval
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
eval:
runs-on: ubuntu-latest
timeout-minutes: 360
strategy:
matrix:
include:
- jobid: 0
- jobid: 1
- jobid: 2
- jobid: 3
- jobid: 4
- jobid: 5
- jobid: 6
- jobid: 7
concurrency:
# Cancel any in-progress workflow runs from the same PR or branch,
# allowing matrix jobs to run concurrently:
group: ${{ github.workflow }}.${{ github.event.pull_request.number || github.ref }}.${{ matrix.jobid }}
cancel-in-progress: true
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ github.event.pull_request.merge.sha || github.ref }}
fetch-depth: 0
- name: Install nix
uses: cachix/install-nix-action@d1ca217b388ee87b2507a9a93bf01368bde7cec2 # v31
- name: Evaluate (jobid=${{ matrix.jobid }})
run: |
echo "strategy.job-total: ${{ strategy.job-total }}"
echo "matrix.jobid: ${{ matrix.jobid }}"
nix develop --command .github/eval.sh -j ${{ matrix.jobid }} -m ${{ strategy.job-total }}