Files
meshvpn/.gitea/workflows/build.yaml
T
jkortis 9df7a910bb
Build and Release Windows Client (Linux Cross-Compile) / build (push) Failing after 1m26s
ci: rewrite for Linux cross-compilation (EXE only)
2026-09-30 22:58:53 -04:00

35 lines
869 B
YAML

name: Build and Release Windows Client (Linux Cross-Compile)
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-pc-windows-msvc
- name: Install Mingw-w64 for linking
run: sudo apt-get update && sudo apt-get install -y mingw-w64
- name: Build Client (Cross-Compile)
working-directory: ./client
run: cargo build --release --target x86_64-pc-windows-msvc
- name: Create Gitea Release
uses: softprops/action-gh-release@v1
with:
files: |
client/target/x86_64-pc-windows-msvc/release/meshvpn-client.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}