Docker cross-compilation github workflow.

This commit is contained in:
Igor Katson 2024-08-26 21:09:00 +01:00
parent 01a4f68e20
commit 11d230f95a
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
8 changed files with 270 additions and 154 deletions

40
.github/workflows/release-windows.yml vendored Normal file
View file

@ -0,0 +1,40 @@
name: Release binaries for Windows
on:
push:
tags:
- "v*.*.*"
env:
CARGO_TERM_COLOR: always
jobs:
release-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: install Tauri
run: cargo install tauri-cli --profile dev
- name: npm install (desktop)
working-directory: desktop
run: npm install
- name: npm install (librqbit/webui)
working-directory: crates/librqbit/webui
run: npm install
- name: cargo tauri build
working-directory: desktop
run: cargo tauri build --ci
- uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
desktop/src-tauri/target/release/bundle/msi/rqbit-desktop_*_x64_en-US.msi
- name: Build release
run: cargo build --profile release-github
- uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
target/release-github/rqbit.exe