From db02bc2c08c7d5807ff725b73c8f598880035571 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 8 Jun 2025 00:36:30 +0100 Subject: [PATCH] Fix TypeScript integration tests by building Swift CLI first on CI --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ .gitignore | 2 ++ 2 files changed, 23 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7c9086b..867cdee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/.gitignore b/.gitignore index ed0eb61..678649c 100644 --- a/.gitignore +++ b/.gitignore @@ -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/