@@ -42,17 +42,17 @@ jobs:
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 :
50
50
ndk-version : r26
51
51
52
52
- name : Setup
53
53
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
56
56
rustup target add \
57
57
aarch64-linux-android \
58
58
armv7-linux-androideabi \
82
82
83
83
- name : Setup
84
84
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
87
87
rustup target add \
88
88
x86_64-apple-darwin \
89
89
aarch64-apple-darwin \
@@ -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 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