diff --git a/.github/workflows/MistKit.yml b/.github/workflows/MistKit.yml index 7eb3037..a08423b 100644 --- a/.github/workflows/MistKit.yml +++ b/.github/workflows/MistKit.yml @@ -22,7 +22,7 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: brightdigit/swift-build@v1.3.3 + - uses: brightdigit/swift-build@v1.4.1 - uses: sersoft-gmbh/swift-coverage-action@v4 id: coverage-files with: @@ -49,7 +49,7 @@ jobs: build: 6.2-RELEASE steps: - uses: actions/checkout@v4 - - uses: brightdigit/swift-build@v1.3.3 + - uses: brightdigit/swift-build@v1.4.1 with: windows-swift-version: ${{ matrix.swift.version }} windows-swift-build: ${{ matrix.swift.build }} @@ -62,7 +62,40 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} os: windows swift_project: MistKit - # files: ${{ join(fromJSON(steps.coverage-files.outputs.files), ',') }} + # files: ${{ join(fromJSON(steps.coverage-files.outputs.files), ',') }} + build-android: + name: Build on Android + runs-on: ubuntu-latest + if: ${{ !contains(github.event.head_commit.message, 'ci skip') }} + strategy: + fail-fast: false + matrix: + swift: + - version: "6.1" + - version: "6.2" + android-api-level: [28, 33, 34] + steps: + - uses: actions/checkout@v4 + - name: Free disk space + if: matrix.build-only == false + uses: jlumbroso/free-disk-space@main + with: + tool-cache: false + android: false + dotnet: true + haskell: true + large-packages: true + docker-images: true + swap-storage: true + - uses: brightdigit/swift-build@v1.4.1 + with: + scheme: ${{ env.PACKAGE_NAME }} + type: android + android-swift-version: ${{ matrix.swift.version }} + android-api-level: ${{ matrix.android-api-level }} + android-run-tests: true + # Note: Code coverage is not supported on Android builds + # The Swift Android SDK does not include LLVM coverage tools (llvm-profdata, llvm-cov) build-macos: name: Build on macOS env: @@ -132,7 +165,7 @@ jobs: - uses: actions/checkout@v4 - name: Build and Test - uses: brightdigit/swift-build@v1.3.3 + uses: brightdigit/swift-build@v1.4.1 with: scheme: ${{ env.PACKAGE_NAME }} type: ${{ matrix.type }} @@ -153,9 +186,9 @@ jobs: lint: name: Linting - if: "!contains(github.event.head_commit.message, 'ci skip')" + if: "!contains(github.event.head_commit.message, 'ci skip')" runs-on: ubuntu-latest - needs: [build-ubuntu, build-macos, build-windows] + needs: [build-ubuntu, build-macos, build-windows, build-android] env: MINT_PATH: .mint/lib MINT_LINK_PATH: .mint/bin diff --git a/Package.resolved b/Package.resolved index a789e79..91a02e8 100644 --- a/Package.resolved +++ b/Package.resolved @@ -1,5 +1,5 @@ { - "originHash" : "5772f4a3fc82aa266a22f0fba10c8e939829aaad63cfdfce1504d281aca64e03", + "originHash" : "f522a83bf637ef80939be380e3541af820ec621a68e0d1d84ced8f8f198c36c5", "pins" : [ { "identity" : "swift-asn1", @@ -60,8 +60,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-openapi-urlsession", "state" : { - "revision" : "6fac6f7c428d5feea2639b5f5c8b06ddfb79434b", - "version" : "1.1.0" + "revision" : "279aa6b77be6aa842a4bf3c45fa79fa15edf3e07", + "version" : "1.2.0" } } ], diff --git a/Package.swift b/Package.swift index 6370189..6442357 100644 --- a/Package.swift +++ b/Package.swift @@ -97,7 +97,7 @@ let package = Package( dependencies: [ // Swift OpenAPI Runtime dependencies .package(url: "https://github.com/apple/swift-openapi-runtime", from: "1.8.0"), - .package(url: "https://github.com/apple/swift-openapi-urlsession", from: "1.1.0"), + .package(url: "https://github.com/apple/swift-openapi-urlsession", from: "1.2.0"), // Crypto library for cross-platform cryptographic operations .package(url: "https://github.com/apple/swift-crypto.git", from: "3.0.0"), // Logging library for cross-platform logging