Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 14 additions & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ jobs:
- name: Build native lib
run: |
./gradlew \
-PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }} \
-Ppowersync.binaries.cross-arch=true \
:core:cmakeJvmBuild
-PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }} \
-Ppowersync.binaries.cross-arch=true \
:core:cmakeJvmBuild
shell: bash
- name: Upload build
uses: actions/upload-artifact@v4
with:
Expand All @@ -49,8 +50,7 @@ jobs:
uses: gradle/wrapper-validation-action@v1
- uses: actions/cache@v3
with:
path: |
~/.konan
path: ~/.konan
key: ${{ runner.os }}-${{ hashFiles('**/.lock') }}
- name: Set up JDK 17
uses: actions/setup-java@v3
Expand All @@ -69,14 +69,15 @@ jobs:
- name: Gradle publish
run: |
./gradlew \
-PGITHUB_PUBLISH_TOKEN="${{ secrets.GITHUB_TOKEN }}" \
-PsigningInMemoryKey="${{ secrets.SIGNING_KEY }}" \
-PsigningInMemoryKeyId="${{ secrets.SIGNING_KEY_ID }}" \
-PsigningInMemoryKeyPassword="${{ secrets.SIGNING_PASSWORD }}" \
-PcentralPortal.username="${{secrets.SONATYPE_USERNAME}}" \
-PcentralPortal.password="${{secrets.SONATYPE_PASSWORD}}" \
-Ppowersync.binaries.provided="true" \
publishAllPublicationsToSonatypeRepository
-PGITHUB_PUBLISH_TOKEN="${{ secrets.GITHUB_TOKEN }}" \
-PsigningInMemoryKey="${{ secrets.SIGNING_KEY }}" \
-PsigningInMemoryKeyId="${{ secrets.SIGNING_KEY_ID }}" \
-PsigningInMemoryKeyPassword="${{ secrets.SIGNING_PASSWORD }}" \
-PcentralPortal.username="${{secrets.SONATYPE_USERNAME}}" \
-PcentralPortal.password="${{secrets.SONATYPE_PASSWORD}}" \
-Ppowersync.binaries.provided="true" \
publishAllPublicationsToSonatypeRepository
shell: bash
# This will change Package.swift in Github packages to direct to new maven central KMMBridge zip file
call-kmmbridge-publish:
needs: deploy
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
strategy:
matrix:
include:
- target: iosSimulatorArm64Test
os: macos-latest
- target: testDebugUnitTest
os: ubuntu-latest
- target: testReleaseUnitTest
os: ubuntu-latest
- os: macos-latest
targets: iosSimulatorArm64Test jvmTest
- os: ubuntu-latest
targets: testDebugUnitTest testReleaseUnitTest jvmTest
- os: windows-latest
targets: jvmTest
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -29,8 +29,7 @@ jobs:
uses: gradle/wrapper-validation-action@v1
- uses: actions/cache@v4
with:
path: |
~/.konan
path: ~/.konan
key: ${{ runner.os }}-${{ hashFiles('**/.lock') }}
- name: Set up JDK 17
uses: actions/setup-java@v3
Expand All @@ -43,5 +42,6 @@ jobs:
- name: Build and run tests with Gradle
run: |
./gradlew \
${{ matrix.target }} \
-PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }}
-PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }} \
${{ matrix.targets }}
shell: bash
Loading