From f4c5cbf5b74f213abb0d410bd91e815527f0fa60 Mon Sep 17 00:00:00 2001 From: Shin Yamamoto Date: Sun, 18 Feb 2024 13:53:04 +0900 Subject: [PATCH] Test ci(2) --- .github/workflows/ci.yml | 47 ++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5eb2a4cc..e4edfc7d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -106,7 +106,29 @@ jobs: -sdk iphonesimulator swiftpm: - if: false + runs-on: ${{ matrix.runs-on }} + env: + DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer + strategy: + fail-fast: false + matrix: + include: + # 17.2 + - target: "x86_64-apple-ios17.2-simulator" + xcode: "15.2" + runs-on: macos-13 + - target: "arm64-apple-ios17.2-simulator" + xcode: "15.2" + runs-on: macos-13 + steps: + - uses: actions/checkout@v3 + - name: "Swift Package Manager build" + run: | + xcrun swift build \ + --sdk "$(xcrun --sdk iphonesimulator --show-sdk-path)" \ + -Xswiftc "-target" -Xswiftc "${{ matrix.target }}" + + swiftpm_old: runs-on: ${{ matrix.runs-on }} env: DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer @@ -133,29 +155,6 @@ jobs: - name: "Swift Package Manager build" run: swift build -Xswiftc "-sdk" -Xswiftc "`xcrun --sdk iphonesimulator --show-sdk-path`" -Xswiftc "-target" -Xswiftc "${{ matrix.target }}" - swiftpm_xcode_15: - runs-on: ${{ matrix.runs-on }} - env: - DEVELOPER_DIR: /Applications/Xcode_15.2.app/Contents/Developer - strategy: - fail-fast: false - matrix: - include: - # 17.2 - - target: "x86_64-apple-ios17.2-simulator" - xcode: "15.2" - runs-on: macos-13 - - target: "arm64-apple-ios17.2-simulator" - xcode: "15.2" - runs-on: macos-13 - steps: - - uses: actions/checkout@v3 - - name: "Swift Package Manager build" - run: | - xcrun swift build --verbose \ - --sdk "$(xcrun --sdk iphonesimulator --show-sdk-path)" \ - -Xswiftc "-target" -Xswiftc "${{ matrix.target }}" - carthage: if: false runs-on: macos-11