@@ -42,17 +42,17 @@ jobs:
4242
4343 - uses : actions/setup-java@v3
4444 with :
45- distribution : ' temurin'
46- java-version : ' 17 '
45+ distribution : " temurin"
46+ java-version : " 17 "
4747
4848 - uses : nttld/setup-ndk@v1
4949 with :
5050 ndk-version : r26
5151
5252 - name : Setup
5353 run : |
54- rustup toolchain install nightly-2023-08-28 -x86_64-unknown-linux-gnu
55- rustup component add rust-src --toolchain nightly-2023-08-28 -x86_64-unknown-linux-gnu
54+ rustup toolchain install nightly-2024-05-18 -x86_64-unknown-linux-gnu
55+ rustup component add rust-src --toolchain nightly-2024-05-18 -x86_64-unknown-linux-gnu
5656 rustup target add \
5757 aarch64-linux-android \
5858 armv7-linux-androideabi \
8282
8383 - name : Setup
8484 run : |
85- rustup toolchain install nightly-2023-08-28-x86_64 -apple-darwin
86- rustup component add rust-src --toolchain nightly-2023-08-28-x86_64 -apple-darwin
85+ rustup toolchain install nightly-2024-05-18-aarch64 -apple-darwin
86+ rustup component add rust-src --toolchain nightly-2024-05-18-aarch64 -apple-darwin
8787 rustup target add \
8888 x86_64-apple-darwin \
8989 aarch64-apple-darwin \
@@ -110,3 +110,51 @@ jobs:
110110 GH_REPO : ${{ github.repository }}
111111 run : |
112112 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 Windows 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