Skip to content

Commit 1a62836

Browse files
committed
Fix composite action
1 parent 567a1a7 commit 1a62836

File tree

2 files changed

+36
-17
lines changed

2 files changed

+36
-17
lines changed

.github/workflows/release.yml

Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,35 @@ jobs:
130130
run: bash tool/build_linux.sh x64
131131

132132
- name: Upload binary
133-
uses: svenstaro/upload-release-action@v2
133+
uses: ./.github/actions/upload
134134
with:
135-
repo_token: ${{ secrets.GITHUB_TOKEN }}
136-
overwrite: true
137-
file: libpowersync_x64.so
138-
asset_name: libpowersync_x64.so
135+
repo-token: ${{ secrets.GITHUB_TOKEN }}
136+
file-name: libpowersync_x64.so
137+
tag: ${{ needs.draft_release.outputs.tag }}
138+
139+
publish_linux_aarch64:
140+
name: Publish Linux aarch64
141+
needs: [draft_release]
142+
runs-on: ubuntu-latest
143+
steps:
144+
- uses: actions/checkout@v3
145+
with:
146+
submodules: true
147+
148+
- name: Install Rust Nightly
149+
uses: dtolnay/rust-toolchain@stable
150+
with:
151+
toolchain: nightly-2024-05-18
152+
components: rust-src
153+
154+
- name: Build binaries
155+
run: bash tool/build_linux.sh aarch64
156+
157+
- name: Upload binary
158+
uses: ./.github/actions/upload
159+
with:
160+
repo-token: ${{ secrets.GITHUB_TOKEN }}
161+
file-name: libpowersync_aarch64.so
139162
tag: ${{ needs.draft_release.outputs.tag }}
140163

141164
publish_windows_x64:
@@ -150,13 +173,11 @@ jobs:
150173
- name: Build binary
151174
run: bash tool/build_windows.sh x64
152175

153-
- name: Upload binary x64
154-
uses: svenstaro/upload-release-action@v2
176+
- name: Upload binary
177+
uses: ./.github/actions/upload
155178
with:
156-
repo_token: ${{ secrets.GITHUB_TOKEN }}
157-
overwrite: true
158-
file: powersync_x64.dll
159-
asset_name: powersync_x64.dll
179+
repo-token: ${{ secrets.GITHUB_TOKEN }}
180+
file-name: powersync_x64.dll
160181
tag: ${{ needs.draft_release.outputs.tag }}
161182

162183
publish_macOS:
@@ -171,11 +192,9 @@ jobs:
171192
- name: Build binary
172193
run: bash tool/build_macos.sh aarch64
173194

174-
- name: Upload binary aarch64
175-
uses: svenstaro/upload-release-action@v2
195+
- name: Upload binary
196+
uses: ./.github/actions/upload
176197
with:
177-
repo_token: ${{ secrets.GITHUB_TOKEN }}
178-
overwrite: true
179-
file: libpowersync_aarch64.dylib
180-
asset_name: libpowersync_aarch64.dylib
198+
repo-token: ${{ secrets.GITHUB_TOKEN }}
199+
file-name: libpowersync_aarch64.dylib
181200
tag: ${{ needs.draft_release.outputs.tag }}

0 commit comments

Comments
 (0)