Docker cross-compilation github workflow.
This commit is contained in:
parent
01a4f68e20
commit
11d230f95a
8 changed files with 270 additions and 154 deletions
40
.github/workflows/release-windows.yml
vendored
Normal file
40
.github/workflows/release-windows.yml
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue