Files
git-workflows/.gitea/workflows/runner-tools-trial.yml
T
Tirsvad d21591764c
TirSystem/github-action: Publish wiki / publish-wiki (push) Skipped
TirSystem/github-action: Sync GitHub mirror metadata / sync-metadata (push) Skipped
Runner tools trial 2 / probe (push) Successful in 1m36s
Throwaway: runner tools trial 2
2026-10-11 12:29:01 +08:00

43 lines
2.0 KiB
YAML

name: Runner tools trial 2
# Throwaway (MIL-007 task 2, second run): current tool versions only.
on:
push:
branches: [ verify-runner-tools-2 ]
jobs:
probe:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: .NET SDK 10 with the official script
run: |
set +e
s=$(date +%s)
curl -fsSL https://dot.net/v1/dotnet-install.sh -o /tmp/dotnet-install.sh || { echo "DOTNET script download failed"; exit 0; }
for ch in 10.0 11.0; do
bash /tmp/dotnet-install.sh --channel $ch --install-dir /tmp/dotnet-$ch >/tmp/dn-$ch.log 2>&1 && echo "DOTNET $ch OK in $(( $(date +%s) - s ))s: $(/tmp/dotnet-$ch/dotnet --version)" || { echo "DOTNET $ch FAIL"; tail -2 /tmp/dn-$ch.log; }
done
bash /tmp/dotnet-install.sh --list-versions 2>/dev/null | head -0
- name: .NET SDK 10 with apt
run: |
set +e
apt-get update -qq 2>&1 | tail -1
apt-cache search dotnet-sdk | sort | tail -6
s=$(date +%s)
apt-get install -y -qq dotnet-sdk-10.0 >/tmp/apt.log 2>&1 && echo "APT dotnet-sdk-10.0 OK in $(( $(date +%s) - s ))s: $(dotnet --version)" || { echo "APT dotnet-sdk-10.0 FAIL"; tail -2 /tmp/apt.log; }
- name: Current clang tools and cppcheck
run: |
set +e
python3 -m venv /tmp/v
for pkg in clang-format clang-tidy cppcheck cppcheck-bin cppcheck-pip; do
if /tmp/v/bin/pip install --quiet "$pkg" 2>/tmp/err; then echo "PIP OK $pkg $(/tmp/v/bin/pip show $pkg | sed -n 2p)"; else echo "PIP FAIL $pkg: $(tail -1 /tmp/err | cut -c1-110)"; fi
done
/tmp/v/bin/clang-format --version | head -1
/tmp/v/bin/clang-tidy --version | head -2
apt-get install -y -qq cppcheck >/dev/null 2>&1; echo "apt $(cppcheck --version)"
echo "latest cppcheck release tag:"; curl -fsSL https://api.github.com/repos/danmar/cppcheck/releases/latest | python3 -c "import sys,json; print(json.load(sys.stdin)['tag_name'])"