-
Notifications
You must be signed in to change notification settings - Fork 5
57 lines (50 loc) · 1.39 KB
/
linux.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
on:
push:
tags:
- "*"
pull_request:
workflow_dispatch:
name: "linux"
jobs:
build_x86_64:
name: Building Linux x86_64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Install Rust Nightly
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly-2024-05-18
components: rust-src
- name: Build binaries
run: bash tool/build_linux.sh x64
- name: Upload binary
if: github.event_name == 'workflow_dispatch'
uses: ./.github/actions/upload
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
file-name: libpowersync_x64.so
tag: ${{ github.ref_name }}
build_aarch64:
name: Building Linux aarch64
runs-on: ubuntu-arm64
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Install Rust Nightly
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly-2024-05-18
components: rust-src
- name: Build binaries
run: bash tool/build_linux.sh aarch64
- name: Upload binary
if: github.event_name == 'workflow_dispatch'
uses: ./.github/actions/upload
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
file-name: libpowersync_aarch64.so
tag: ${{ github.ref_name }}