add build workflow
Some checks failed
Release - Linux / Build and upload release artifact (Linux) (push) Successful in 6m3s
Release - Windows / Build and upload release artifact (Windows) (push) Has been cancelled

This commit is contained in:
2025-11-19 02:27:37 +01:00
parent f5e34ccece
commit 2fb63c9a44
2 changed files with 79 additions and 0 deletions

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

@@ -0,0 +1,33 @@
name: Release - Windows
on:
push:
branches: [ main, master ]
jobs:
build-windows:
name: Build and upload release artifact (Windows)
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Cache cargo registry and git index
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Rust
run: choco install rust-ms -y
- name: Build (release)
run: cargo build --workspace --release
- name: Upload release artifact (Windows)
uses: actions/upload-artifact@v3
with:
name: release-windows
path: target/release