Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 17 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ jobs:
run: |
! git grep -nIiE 'snellius|surf\.nl|/gpfs/|/projects/0|rg\.terra|scratch-shared' -- . ':!.github/workflows/ci.yml'

# Every tool built and tested against this commit of the library, with its
# pinned zig-common replaced by this checkout.
# Every tool's main built and tested against this commit of the library.
# zig build --fork puts this checkout in place of the zig-common the tool
# pins and leaves its build.zig.zon alone: eb-local's SBOM tests read it.
tools:
runs-on: ubuntu-latest
timeout-minutes: 30
Expand All @@ -41,7 +42,11 @@ jobs:
matrix:
include:
- repo: stackhands/eb-keep-logs
ref: zig
- repo: stackhands/eb-local
# Its command-line suite runs against the test artifact.
args: -Dtest-ops=true
- repo: stackhands/eb-staged-rebuild
- repo: stackhands/eessi-arch-guard
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand All @@ -51,21 +56,17 @@ jobs:
with:
persist-credentials: false
repository: ${{ matrix.repo }}
ref: ${{ matrix.ref }}
ref: main
path: tool
# eb-local's command-line suite is Python, run with the version its own
# CI uses.
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"
- uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2.2.1
with:
version: 0.17.1
- name: point the tool at this checkout
working-directory: tool
run: |
python3 - <<'PY'
import re
p = "build.zig.zon"
s = open(p).read()
s, n = re.subn(r"\.zig_common = \.\{[^}]*\}", '.zig_common = .{ .path = "../zig-common" }', s)
assert n == 1, "no zig_common dependency"
open(p, "w").write(s)
PY
- working-directory: tool
run: zig build test --summary all
env:
ARGS: ${{ matrix.args }}
run: zig build $ARGS test --summary all --fork="$GITHUB_WORKSPACE/zig-common"
2 changes: 1 addition & 1 deletion COMPAT.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
| zig-common | Zig | tools built on it |
|---|---|---|
| 0.9.0 | 0.17.1 | eessi-arch-guard on its next release (proc.killGroup); eb-keep-logs builds against it in CI |
| 0.8.1 | 0.17.1 | eb-staged-rebuild, eb-keep-logs and eessi-arch-guard on their next releases (umask read without changing it, std names without deprecated aliases) |
| 0.8.1 | 0.17.1 | eb-local 2.0.0 (its first Zig release) to 2.4.0; eb-staged-rebuild, eb-keep-logs and eessi-arch-guard on their next releases (umask read without changing it, std names without deprecated aliases) |
| 0.8.0 | 0.17.1 | eb-staged-rebuild 1.0.0 (errno text as Python prints it, from the errno the kernel gave); eb-keep-logs builds against it in CI |
| 0.7.0 | 0.17.1 | eb-staged-rebuild (Zig port; exec errors and the ledger group stop of its build-events path); eb-keep-logs builds against it in CI |
| 0.6.0 | 0.17.1 | eb-staged-rebuild (Zig port; failing fault points in its -Dtest-ops artifact); eb-keep-logs builds against it in CI |
Expand Down
1 change: 1 addition & 0 deletions changelog.d/+compat-ci.misc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CI builds and tests the `main` of every tool built on the library (eb-keep-logs, eb-local, eb-staged-rebuild and eessi-arch-guard) against each commit, as COMPAT.md says, with `zig build --fork`; it built only eb-keep-logs, from its stale `zig` branch.
1 change: 1 addition & 0 deletions changelog.d/+compat-eb-local.doc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COMPAT.md lists eb-local 2.0.0 to 2.4.0, built on 0.8.1 since its Zig port.
Loading