Fix TypeScript integration tests by building Swift CLI first on CI

This commit is contained in:
Peter Steinberger 2025-06-08 00:36:30 +01:00
parent 6597b12e3c
commit db02bc2c08
2 changed files with 23 additions and 0 deletions

View file

@ -14,9 +14,30 @@ jobs:
matrix:
node-version: [20.x, 22.x]
env:
DEVELOPER_DIR: /Applications/Xcode_16.3.app/Contents/Developer
steps:
- uses: actions/checkout@v4
- name: Set up Xcode
run: |
sudo xcode-select -s $DEVELOPER_DIR
xcodebuild -version
swift --version
- name: Build Swift CLI for tests
run: |
cd peekaboo-cli
swift build -c release
# Copy the binary to the expected location
cp .build/release/peekaboo ../peekaboo
cd ..
# Make it executable
chmod +x peekaboo
# Verify it exists
ls -la peekaboo
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:

2
.gitignore vendored
View file

@ -75,6 +75,8 @@ peekaboo-cli/.build/
peekaboo-cli/DerivedData/
peekaboo-cli/.swiftpm/
peekaboo-cli/*.bc
# LLVM bitcode files (Swift compiler artifacts)
*.bc
# Compiled CLI binary in root
/peekaboo
.build/