Commit 1afeb101d6
Verified · cmc ci/build: success
Layout: unified · split
.gitbay/ci.yml +10 −21
| @@ -1,25 +1,14 @@ | ||
| 1 | # Each step runs in its own `sh -c`; exports do not survive between steps. | |
| 2 | # swiftly installs into $HOME, which persists across builds. | |
| 1 | # Diagnostic only: identify the runner before choosing a toolchain install. | |
| 3 | 2 | jobs: |
| 4 | 3 | build: |
| 5 | 4 | steps: |
| 6 | 5 | - | |
| 7 | set -eu | |
| 8 | command -v curl >/dev/null || { echo "runner is missing: curl"; exit 1; } | |
| 9 | if ! command -v "$HOME/.local/bin/swiftly" >/dev/null 2>&1; then | |
| 10 | curl -fsSL "https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz" | tar -xz -C /tmp | |
| 11 | /tmp/swiftly init --assume-yes --skip-install --quiet-shell-followup | |
| 12 | fi | |
| 13 | . "$HOME/.local/share/swiftly/env.sh" | |
| 14 | swiftly install --use 6.4 | |
| 15 | swift format lint --strict --recursive Sources Tests Package.swift | |
| 16 | swift build | |
| 17 | test: | |
| 18 | steps: | |
| 19 | - | | |
| 20 | set -eu | |
| 21 | . "$HOME/.local/share/swiftly/env.sh" | |
| 22 | swiftly install --use 6.4 | |
| 23 | swift test | |
| 24 | paths-ignore: | |
| 25 | - docs/** | |
| 6 | set -u | |
| 7 | cat /etc/os-release || true | |
| 8 | uname -a | |
| 9 | id | |
| 10 | echo "HOME=$HOME" | |
| 11 | ldd --version 2>&1 | head -1 || true | |
| 12 | for t in curl tar gzip python3 git clang docker sudo apt-get dnf; do printf '%s: ' "$t"; command -v "$t" || echo missing; done | |
| 13 | df -h "$HOME" /tmp | tail -2 | |
| 14 | nproc; free -m | head -2 || true | |