-
Notifications
You must be signed in to change notification settings - Fork 63
45 lines (44 loc) · 1.27 KB
/
eval.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 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
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: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.merge.sha || github.ref }}
fetch-depth: 0
- name: Install nix
uses: cachix/install-nix-action@v30
- 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 }}