Skip to content

Commit bcacef6

Browse files
authored
Fix Windows deployment CI and add Windows testing (#96)
1 parent b4f208f commit bcacef6

File tree

2 files changed

+24
-23
lines changed

2 files changed

+24
-23
lines changed

.github/workflows/deploy.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ jobs:
3232
- name: Build native lib
3333
run: |
3434
./gradlew \
35-
-PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }} \
36-
-Ppowersync.binaries.cross-arch=true \
37-
:core:cmakeJvmBuild
35+
-PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }} \
36+
-Ppowersync.binaries.cross-arch=true \
37+
:core:cmakeJvmBuild
38+
shell: bash
3839
- name: Upload build
3940
uses: actions/upload-artifact@v4
4041
with:
@@ -49,8 +50,7 @@ jobs:
4950
uses: gradle/wrapper-validation-action@v1
5051
- uses: actions/cache@v3
5152
with:
52-
path: |
53-
~/.konan
53+
path: ~/.konan
5454
key: ${{ runner.os }}-${{ hashFiles('**/.lock') }}
5555
- name: Set up JDK 17
5656
uses: actions/setup-java@v3
@@ -69,14 +69,15 @@ jobs:
6969
- name: Gradle publish
7070
run: |
7171
./gradlew \
72-
-PGITHUB_PUBLISH_TOKEN="${{ secrets.GITHUB_TOKEN }}" \
73-
-PsigningInMemoryKey="${{ secrets.SIGNING_KEY }}" \
74-
-PsigningInMemoryKeyId="${{ secrets.SIGNING_KEY_ID }}" \
75-
-PsigningInMemoryKeyPassword="${{ secrets.SIGNING_PASSWORD }}" \
76-
-PcentralPortal.username="${{secrets.SONATYPE_USERNAME}}" \
77-
-PcentralPortal.password="${{secrets.SONATYPE_PASSWORD}}" \
78-
-Ppowersync.binaries.provided="true" \
79-
publishAllPublicationsToSonatypeRepository
72+
-PGITHUB_PUBLISH_TOKEN="${{ secrets.GITHUB_TOKEN }}" \
73+
-PsigningInMemoryKey="${{ secrets.SIGNING_KEY }}" \
74+
-PsigningInMemoryKeyId="${{ secrets.SIGNING_KEY_ID }}" \
75+
-PsigningInMemoryKeyPassword="${{ secrets.SIGNING_PASSWORD }}" \
76+
-PcentralPortal.username="${{secrets.SONATYPE_USERNAME}}" \
77+
-PcentralPortal.password="${{secrets.SONATYPE_PASSWORD}}" \
78+
-Ppowersync.binaries.provided="true" \
79+
publishAllPublicationsToSonatypeRepository
80+
shell: bash
8081
# This will change Package.swift in Github packages to direct to new maven central KMMBridge zip file
8182
call-kmmbridge-publish:
8283
needs: deploy

.github/workflows/test.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
strategy:
1616
matrix:
1717
include:
18-
- target: iosSimulatorArm64Test
19-
os: macos-latest
20-
- target: testDebugUnitTest
21-
os: ubuntu-latest
22-
- target: testReleaseUnitTest
23-
os: ubuntu-latest
18+
- os: macos-latest
19+
targets: iosSimulatorArm64Test jvmTest
20+
- os: ubuntu-latest
21+
targets: testDebugUnitTest testReleaseUnitTest jvmTest
22+
- os: windows-latest
23+
targets: jvmTest
2424
runs-on: ${{ matrix.os }}
2525

2626
steps:
@@ -29,8 +29,7 @@ jobs:
2929
uses: gradle/wrapper-validation-action@v1
3030
- uses: actions/cache@v4
3131
with:
32-
path: |
33-
~/.konan
32+
path: ~/.konan
3433
key: ${{ runner.os }}-${{ hashFiles('**/.lock') }}
3534
- name: Set up JDK 17
3635
uses: actions/setup-java@v3
@@ -43,5 +42,6 @@ jobs:
4342
- name: Build and run tests with Gradle
4443
run: |
4544
./gradlew \
46-
${{ matrix.target }} \
47-
-PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }}
45+
-PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }} \
46+
${{ matrix.targets }}
47+
shell: bash

0 commit comments

Comments
 (0)