Build server for multiple arch (#106)

This commit is contained in:
Andras Schmelczer 2025-08-30 21:50:34 +01:00 committed by GitHub
parent 9177984ff6
commit 4cdd0cbd40
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 111 additions and 28 deletions

View file

@ -26,15 +26,32 @@ jobs:
npm ci
npm run build
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: "1.89.0"
components: clippy, rustfmt
- name: Install cross-compilation tools
run: |
apt update
apt install -y gcc-aarch64-linux-gnu musl-tools gcc-mingw-w64-x86-64
- name: Build Linux and Windows binaries
run: ./scripts/build-sync-server-binaries.sh
- name: Create release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag="${GITHUB_REF#refs/tags/}"
cd frontend/obsidian-plugin/dist
mkdir -p release
cp frontend/obsidian-plugin/dist/* release/
cp sync-server/artifacts/sync-server-* release/
cd release
gh release create "$tag" \
--title="$tag" \
--draft \
main.js manifest.json styles.css
*