ci: run optimized build gates

This commit is contained in:
Mihaela Mihaljevic 2026-06-05 22:36:28 +02:00
parent 4bc772d807
commit b47ca4fc31
4 changed files with 8 additions and 1 deletions

View File

@ -36,6 +36,8 @@ jobs:
run: |
swift build
swift test
swift build -c release
swift test -c release
linux:
name: Linux

View File

@ -10,6 +10,8 @@ run_linux_gate() {
swift --version
swift build
swift test
swift build -c release
swift test -c release
}
if [ "$(uname -s)" = "Linux" ]; then
@ -40,4 +42,4 @@ rsync -a --delete \
--exclude '.git' \
./ "$HOST:$REMOTE_DIR/"
ssh "$HOST" "limactl start '$LIMA_INSTANCE' >/tmp/pureyaml-lima-start.log 2>&1 || true; limactl shell '$LIMA_INSTANCE' -- bash -lc 'export SWIFTLY_HOME_DIR=\"$REMOTE_SWIFTLY_HOME\" SWIFTLY_BIN_DIR=\"$REMOTE_SWIFTLY_BIN\"; [ -f \"\$SWIFTLY_HOME_DIR/env.sh\" ] && . \"\$SWIFTLY_HOME_DIR/env.sh\"; cd \"$REMOTE_DIR\" && swift --version && swift build && swift test'"
ssh "$HOST" "limactl start '$LIMA_INSTANCE' >/tmp/pureyaml-lima-start.log 2>&1 || true; limactl shell '$LIMA_INSTANCE' -- bash -lc 'export SWIFTLY_HOME_DIR=\"$REMOTE_SWIFTLY_HOME\" SWIFTLY_BIN_DIR=\"$REMOTE_SWIFTLY_BIN\"; [ -f \"\$SWIFTLY_HOME_DIR/env.sh\" ] && . \"\$SWIFTLY_HOME_DIR/env.sh\"; cd \"$REMOTE_DIR\" && swift --version && swift build && swift test && swift build -c release && swift test -c release'"

View File

@ -20,3 +20,4 @@ if ! swift_command sdk list | grep -qx "$SDK_ID"; then
fi
swift_command build --swift-sdk "$SDK_ID"
swift_command build -c release --swift-sdk "$SDK_ID"

View File

@ -4,3 +4,5 @@ $ErrorActionPreference = "Stop"
swift --version
swift build
swift test
swift build -c release
swift test -c release