ci: run optimized build gates
This commit is contained in:
parent
4bc772d807
commit
b47ca4fc31
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -36,6 +36,8 @@ jobs:
|
||||
run: |
|
||||
swift build
|
||||
swift test
|
||||
swift build -c release
|
||||
swift test -c release
|
||||
|
||||
linux:
|
||||
name: Linux
|
||||
|
||||
@ -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'"
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -4,3 +4,5 @@ $ErrorActionPreference = "Stop"
|
||||
swift --version
|
||||
swift build
|
||||
swift test
|
||||
swift build -c release
|
||||
swift test -c release
|
||||
|
||||
Loading…
Reference in New Issue
Block a user