From 93d8534bc6c1d7fac1ddbad1bbf41c1bcedba903 Mon Sep 17 00:00:00 2001 From: Kabir Oberai Date: Sat, 31 May 2025 19:53:03 +0530 Subject: [PATCH] changes --- .github/workflows/integration.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index f2a8810e..b4de8b56 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -29,10 +29,10 @@ jobs: with: name: xtool-bin path: stage - - name: Build SDK + - name: Build xtool run: | swift build --product xtool - ./.build/debug/xtool sdk build /Applications/Xcode_16.3.app stage + ln -fs "$PWD/.build/debug/xtool" /usr/local/bin/xtool # https://github.com/abiosoft/colima/issues/970#issuecomment-2224011277 - name: Setup Docker run: | @@ -41,15 +41,23 @@ jobs: sudo curl -fL -o $LIMACTL_PATH https://github.com/mikekazakov/lima-nohvf/raw/acd34e689a7186d8317116165101b1fa56083542/limactl sudo chmod +x $LIMACTL_PATH colima start --disk 20 --vm-type qemu --arch arm64 - - name: Run test - shell: docker run --rm -i -v ./stage:/stage swift:6.1.1 bash < {0} + - name: Build SDK run: | - export APPIMAGE_EXTRACT_AND_RUN=1 + xtool sdk build /Applications/Xcode_16.3.app stage + - name: Run test + run: | + docker run --rm -i \ + -v ./stage:/stage \ + swift:6.1.1 \ + bash <<< EOF mkdir -p ~/.swiftpm/swift-sdks ln -fs /stage/darwin.artifactbundle ~/.swiftpm/swift-sdks/ + export APPIMAGE_EXTRACT_AND_RUN=1 ln -fs /stage/xtool-aarch64.AppImage /usr/local/bin/xtool xtool new Hello --skip-setup cd Hello xtool dev build + + EOF