diff --git a/.woodpecker.yml b/.woodpecker.yml index 4258614..6b8606c 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,13 +1,11 @@ -# .woodpecker.yml steps: - name: hello-macos - # local 后端下,image 用来指定 shell - image: /bin/zsh + image: /bin/bash when: - - event: [push, manual, pull_request] - platform: darwin/arm64 # 只在 macOS/ARM64 的 agent 上执行 + platform: darwin/arm64 + event: [push, manual, pull_request] commands: - - set -e - - echo "Agent platform: $CI_SYSTEM_PLATFORM" - - sw_vers - - xcodebuild -version || true + - 'set -e' + - 'echo "Agent platform: ${CI_SYSTEM_PLATFORM}"' + - 'sw_vers' + - 'xcodebuild -version || true'