-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add windows release in github action
- Loading branch information
Showing
4 changed files
with
89 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: test | ||
|
||
on: | ||
push: | ||
branches: | ||
- test | ||
|
||
jobs: | ||
build-windows: | ||
name: build-windows | ||
runs-on: windows-latest | ||
steps: | ||
- name: checkout code | ||
uses: actions/checkout@v4 | ||
- name: setup go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '>=1.22.0' | ||
- name: build libwg | ||
run: cd libwg && ./build.ps1 | ||
- name: rust install gnu toolchain | ||
run: rustup toolchain install stable-gnu | ||
- name: rust use gnu toolchain | ||
run: rustup default stable-x86_64-pc-windows-gnu | ||
- name: build package | ||
run: cargo build --release | ||
- name: build check result | ||
run: | | ||
Move-Item -Path "target/release/corplink-rs.exe" -Destination "." | ||
Move-Item -Path "config/config.json" -Destination "." | ||
Compress-Archive -Path corplink-rs.exe,config.json -Destination corplink-rs-${{ github.ref_name }}-windows.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
git submodule update --init --recursive | ||
|
||
Set-Location wireguard-go | ||
|
||
make libwg | ||
|
||
Move-Item -Path "libwg.*" -Destination ".." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters