mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +08:00
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
name: Netch Build CI
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: windows-2022
|
|
steps:
|
|
- name: Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.17.2
|
|
|
|
- name: C++
|
|
uses: msys2/setup-msys2@v2
|
|
with:
|
|
update: true
|
|
release: true
|
|
install: base-devel git mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-libevent mingw-w64-x86_64-pcre2 mingw-w64-x86_64-freetype mingw-w64-x86_64-libpng mingw-w64-x86_64-bzip2 mingw-w64-x86_64-openssl mingw-w64-x86_64-mbedtls mingw-w64-x86_64-libsodium mingw-w64-x86_64-c-ares mingw-w64-x86_64-boost mingw-w64-x86_64-libmariadbclient unzip p7zip
|
|
|
|
- name: Rust
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: nightly
|
|
profile: minimal
|
|
|
|
- name: MSBuild
|
|
uses: microsoft/setup-msbuild@v1.0.3
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- name: Build
|
|
shell: pwsh
|
|
run: |
|
|
.\build.ps1 -Configuration Release -OutputPath release
|
|
|
|
- name: Upload
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: release
|
|
path: release
|