Skip to content

Commit 11e096b

Browse files
committed
Release windows and linux on tag push
1 parent b58dd90 commit 11e096b

File tree

5 files changed

+60
-8
lines changed

5 files changed

+60
-8
lines changed

.github/workflows/android.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
on:
22
push:
3-
pull_request:
3+
tags:
4+
- "*"
45
name: "android"
56
jobs:
67
build:

.github/workflows/ios.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
on:
22
push:
3-
pull_request:
3+
tags:
4+
- "*"
45
name: "ios"
56
jobs:
67
build:

.github/workflows/linux.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
on:
22
push:
3-
pull_request:
3+
tags:
4+
- "*"
45
name: "linux"
56
jobs:
67
build_x86_64:
@@ -27,4 +28,4 @@ jobs:
2728
overwrite: true
2829
file: libpowersync_x64.so
2930
asset_name: libpowersync_x64.so
30-
tag: v0.1.6
31+
tag: ${{ github.ref_name }}

.github/workflows/release.yml

+50-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ 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:
@@ -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 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 }}

.github/workflows/windows.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
on:
22
push:
3-
pull_request:
3+
tags:
4+
- "*"
45
name: "windows"
56
jobs:
67
build_windows:
@@ -21,4 +22,4 @@ jobs:
2122
overwrite: true
2223
file: powersync_x64.dll
2324
asset_name: powersync_x64.dll
24-
tag: v0.1.6
25+
tag: ${{ github.ref_name }}

0 commit comments

Comments
 (0)