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 }}