File tree Expand file tree Collapse file tree 4 files changed +66
-1
lines changed Expand file tree Collapse file tree 4 files changed +66
-1
lines changed Original file line number Diff line number Diff line change 1+ name : " Upload binary file"
2+ description : " Upload binary file to GitHub releases"
3+ inputs :
4+ repo-token :
5+ required : true
6+ description : " The secret created for the workflow run"
7+ file-name :
8+ required : true
9+ description : " The file name to be uploaded"
10+ tag :
11+ required : false
12+ description : " The short ref name of the branch or tag that triggered the workflow run."
13+ default : ${{ github.ref_name }}
14+ runs :
15+ using : " composite"
16+ steps :
17+ - name : Upload binary
18+ uses : svenstaro/upload-release-action@v2
19+ with :
20+ repo_token : ${{ inputs.repo-token }}
21+ overwrite : true
22+ file : ${{ inputs.file-name }}
23+ asset_name : ${{ inputs.file-name }}
24+ tag : ${{ inputs.tag }}
Original file line number Diff line number Diff line change 22 push :
33 tags :
44 - " *"
5+ workflow_dispatch :
56name : " linux"
67jobs :
78 build_x86_64 :
2021
2122 - name : Build binaries
2223 run : bash tool/build_linux.sh x64
24+
25+ - name : Upload binary
26+ if : github.event_name == 'workflow_dispatch'
27+ uses : ./.github/actions/upload
28+ with :
29+ repo-token : ${{ secrets.GITHUB_TOKEN }}
30+ file-name : libpowersync_x64.so
31+ tag : ${{ github.ref_name }}
32+
33+ build_aarch64 :
34+ name : Building Linux aarch64
35+ runs-on : ubuntu-arm64
36+ steps :
37+ - uses : actions/checkout@v3
38+ with :
39+ submodules : true
40+
41+ - name : Install Rust Nightly
42+ uses : dtolnay/rust-toolchain@stable
43+ with :
44+ toolchain : nightly-2024-05-18
45+ components : rust-src
46+
47+ - name : Build binaries
48+ run : bash tool/build_linux.sh aarch64
49+
50+ - name : Upload binary
51+ if : github.event_name == 'workflow_dispatch'
52+ uses : ./.github/actions/upload
53+ with :
54+ repo-token : ${{ secrets.GITHUB_TOKEN }}
55+ file-name : libpowersync_aarch64.so
56+ tag : ${{ github.ref_name }}
Original file line number Diff line number Diff line change 1414
1515 - name : Build binary
1616 run : bash tool/build_windows.sh x64
17+
18+ - name : Upload binary
19+ if : github.event_name == 'workflow_dispatch'
20+ uses : ./.github/actions/upload
21+ with :
22+ repo-token : ${{ secrets.GITHUB_TOKEN }}
23+ file-name : powersync_x64.dll
24+ tag : ${{ github.ref_name }}
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ if [ "$1" = "x64" ]; then
33 cargo build -p powersync_loadable --release
44 mv " target/release/libpowersync.so" " libpowersync_x64.so"
55else
6- # Note: aarch64-unknown-linux-gnu has not been tested.
76 rustup target add aarch64-unknown-linux-gnu
87 cargo build -p powersync_loadable --release
98 mv " target/release/libpowersync.so" " libpowersync_aarch64.so"
You can’t perform that action at this time.
0 commit comments