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
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:
1 parent
c79f495013
commit
8f06b8b386
2 files changed
+21
-4
No files matched your search
+10
-2
@@ -11,15 +11,23 @@ on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-and-test-gcc16:
|
||||
runs-on: linux
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Check the dev toolchain
|
||||
- name: Set up the dev toolchain
|
||||
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: Configure (Debug, Ninja, GCC 16 C++26)
|
||||
run: |
|
||||
|
||||
@@ -11,6 +11,7 @@ name: Release
|
||||
on:
|
||||
push:
|
||||
tags: ["v*"]
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
@@ -22,9 +23,17 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Check the dev toolchain
|
||||
- name: Set up the dev toolchain
|
||||
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
|
||||
run: |
|
||||
tag="${GITHUB_REF_NAME}"
|
||||
|
||||
Reference in new issue
Block a user