mirror of
https://github.com/samsonjs/Peekaboo.git
synced 2026-04-27 15:07:41 +00:00
Fix TypeScript integration tests by building Swift CLI first on CI
This commit is contained in:
parent
6597b12e3c
commit
db02bc2c08
2 changed files with 23 additions and 0 deletions
21
.github/workflows/ci.yml
vendored
21
.github/workflows/ci.yml
vendored
|
|
@ -14,9 +14,30 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [20.x, 22.x]
|
node-version: [20.x, 22.x]
|
||||||
|
|
||||||
|
env:
|
||||||
|
DEVELOPER_DIR: /Applications/Xcode_16.3.app/Contents/Developer
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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 }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -75,6 +75,8 @@ peekaboo-cli/.build/
|
||||||
peekaboo-cli/DerivedData/
|
peekaboo-cli/DerivedData/
|
||||||
peekaboo-cli/.swiftpm/
|
peekaboo-cli/.swiftpm/
|
||||||
peekaboo-cli/*.bc
|
peekaboo-cli/*.bc
|
||||||
|
# LLVM bitcode files (Swift compiler artifacts)
|
||||||
|
*.bc
|
||||||
# Compiled CLI binary in root
|
# Compiled CLI binary in root
|
||||||
/peekaboo
|
/peekaboo
|
||||||
.build/
|
.build/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue