|
42 | 42 |
|
43 | 43 | - uses: actions/setup-java@v3
|
44 | 44 | with:
|
45 |
| - distribution: 'temurin' |
46 |
| - java-version: '17' |
| 45 | + distribution: "temurin" |
| 46 | + java-version: "17" |
47 | 47 |
|
48 | 48 | - uses: nttld/setup-ndk@v1
|
49 | 49 | with:
|
@@ -110,3 +110,51 @@ jobs:
|
110 | 110 | GH_REPO: ${{ github.repository }}
|
111 | 111 | run: |
|
112 | 112 | gh release upload "${{ needs.draft_release.outputs.tag }}" powersync-sqlite-core.xcframework.tar.xz
|
| 113 | +
|
| 114 | + publish_linux_x86_64: |
| 115 | + name: Publish Linux x86_64 |
| 116 | + needs: [draft_release] |
| 117 | + runs-on: ubuntu-latest |
| 118 | + steps: |
| 119 | + - uses: actions/checkout@v3 |
| 120 | + with: |
| 121 | + submodules: true |
| 122 | + |
| 123 | + - name: Install Rust Nightly |
| 124 | + uses: dtolnay/rust-toolchain@stable |
| 125 | + with: |
| 126 | + toolchain: nightly-2024-05-18 |
| 127 | + components: rust-src |
| 128 | + |
| 129 | + - name: Build binaries |
| 130 | + run: bash tool/build_linux.sh x64 |
| 131 | + |
| 132 | + - name: Upload binary |
| 133 | + uses: svenstaro/upload-release-action@v2 |
| 134 | + with: |
| 135 | + repo_token: ${{ secrets.GITHUB_TOKEN }} |
| 136 | + overwrite: true |
| 137 | + file: libpowersync_x64.so |
| 138 | + asset_name: libpowersync_x64.so |
| 139 | + tag: ${{ needs.draft_release.outputs.tag }} |
| 140 | + |
| 141 | + publish_windows_x64: |
| 142 | + name: Publish Widnows x64 |
| 143 | + needs: [draft_release] |
| 144 | + runs-on: windows-latest |
| 145 | + steps: |
| 146 | + - uses: actions/checkout@v3 |
| 147 | + with: |
| 148 | + submodules: true |
| 149 | + |
| 150 | + - name: Build binary |
| 151 | + run: bash tool/build_windows.sh x64 |
| 152 | + |
| 153 | + - name: Upload binary x64 |
| 154 | + uses: svenstaro/upload-release-action@v2 |
| 155 | + with: |
| 156 | + repo_token: ${{ secrets.GITHUB_TOKEN }} |
| 157 | + overwrite: true |
| 158 | + file: powersync_x64.dll |
| 159 | + asset_name: powersync_x64.dll |
| 160 | + tag: ${{ needs.draft_release.outputs.tag }} |
0 commit comments