test release windows #9
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
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: | | |
cd target | |
cp release/corplink-rs . | |
Compress-Archive -Path corplink-rs,config.json -Destination corplink-rs-${{ github.ref_name }}-windows.zip | |
ls |