ci: discover the dev toolchain in the runner PATH
VoidBuildSystem CI / sanitizers-gcc16 (push) Failing after 3s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 6s
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 4s
VoidBuildSystem CI / fuzz-clang (push) Failing after 4s
VoidBuildSystem CI / wine-windows-gcc16 (push) Failing after 5s

This commit is contained in:
faumaray committed 2026-12-05 14:25:33 +03:00
1 parent c79f495013
commit 8f06b8b386
2 files changed
+21 -4

No files matched your search

+10 -2
View File
@@ -11,15 +11,23 @@ on:
push: push:
branches: [main] branches: [main]
pull_request: pull_request:
workflow_dispatch:
jobs: jobs:
build-and-test-gcc16: build-and-test-gcc16:
runs-on: linux runs-on: linux
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Check the dev toolchain - name: Set up the dev toolchain
run: | run: |
command -v dev || { echo "the 'dev' toolchain wrapper is required on this runner" >&2; exit 1; } for dir in /etc/profiles/per-user/*/bin /run/current-system/sw/bin /nix/var/nix/profiles/default/bin; do
if [ -d "$dir" ] && [ -x "$dir/dev" ]; then
export PATH="$dir:$PATH"
break
fi
done
command -v dev || { echo "the 'dev' toolchain wrapper was not found on this runner" >&2; exit 1; }
echo "PATH=$PATH" >> "$GITHUB_ENV"
dev cpp-gcc -c g++ --version | head -1 dev cpp-gcc -c g++ --version | head -1
- name: Configure (Debug, Ninja, GCC 16 C++26) - name: Configure (Debug, Ninja, GCC 16 C++26)
run: | run: |
+11 -2
View File
@@ -11,6 +11,7 @@ name: Release
on: on:
push: push:
tags: ["v*"] tags: ["v*"]
workflow_dispatch:
permissions: permissions:
contents: write contents: write
@@ -22,9 +23,17 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Check the dev toolchain - name: Set up the dev toolchain
run: | run: |
command -v dev || { echo "the 'dev' toolchain wrapper is required on this runner" >&2; exit 1; } for dir in /etc/profiles/per-user/*/bin /run/current-system/sw/bin /nix/var/nix/profiles/default/bin; do
if [ -d "$dir" ] && [ -x "$dir/dev" ]; then
export PATH="$dir:$PATH"
break
fi
done
command -v dev || { echo "the 'dev' toolchain wrapper was not found on this runner" >&2; exit 1; }
echo "PATH=$PATH" >> "$GITHUB_ENV"
dev cpp-gcc -c g++ --version | head -1
- name: Verify the tag matches the project version - name: Verify the tag matches the project version
run: | run: |
tag="${GITHUB_REF_NAME}" tag="${GITHUB_REF_NAME}"