Fix build directory #17
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
pull_request: | |
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 | |
targets: x86_64-unknown-linux-gnu | |
- name: Setup | |
run: | | |
cargo build -p powersync_loadable --release | |
mv "target/release/libpowersync.so" "libpowersync_x64.so" | |
- name: Upload binary | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
overwrite: true | |
file: libpowersync_x64.so | |
asset_name: libpowersync_x64.so | |
tag: v0.1.6 | |
build_aarch64: | |
name: Building Linux aarch64 | |
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 | |
targets: aarch64-unknown-linux-gnu | |
- name: Setup | |
run: | | |
cargo build -p powersync_loadable --release --target aarch64-unknown-linux-gnu | |
mv "target/release/libpowersync.so" "libpowersync_aarch64.so" | |
- name: Upload binary | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
overwrite: true | |
file: libpowersync_aarch64.so | |
asset_name: libpowersync_aarch64.so | |
tag: v0.1.6 |