Skip to content

Commit

Permalink
[#4] ci(workflows/release): build windows binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
M0dEx committed Nov 9, 2023
1 parent ccaa2ac commit 2372d7c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,35 @@ jobs:
with:
files: |
quincy-linux-x86_64.tar.gz
build-windows-binaries:
name: Build x86_64 Linux binaries

runs-on: windows-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v2
name: Checkout repository
- uses: dtolnay/rust-toolchain@stable
name: Set up toolchain
- uses: Swatinem/rust-cache@v2
name: Cache toolchain and dependencies
- name: Build x86_64 Windows binaries
run: |
cargo build --release
mkdir ./quincy-windows-x86_64
wget https://www.wintun.net/builds/wintun-0.14.1.zip -O wintun.zip
unzip wintun.zip
cp wintun/bin/amd64/wintun.dll quincy-windows-x86_64/
cp target/release/quincy-client.exe quincy-windows-x86_64/
cp target/release/quincy-server.exe quincy-windows-x86_64/
cp target/release/quincy-users.exe quincy-windows-x86_64/
zip -r -9 quincy-windows-x86_64.zip quincy-windows-x86_64/
- uses: softprops/action-gh-release@v1
name: Add binary to release
with:
files: |
quincy-windows-x86_64.tar.gz

0 comments on commit 2372d7c

Please sign in to comment.