2023-09-14 21:13:01 +08:00
|
|
|
name: Windows Build
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "gh-pipeline" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "gh-pipeline" ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-and-upload:
|
|
|
|
|
|
|
|
runs-on: windows-latest
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: msys2 {0}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Checkout repo
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Install x64 gcc
|
|
|
|
uses: msys2/setup-msys2@v2
|
|
|
|
with:
|
|
|
|
msystem: UCRT64
|
|
|
|
update: true
|
|
|
|
install: |
|
|
|
|
mingw-w64-ucrt-x86_64-gcc
|
|
|
|
mingw-w64-ucrt-x86_64-make
|
|
|
|
mingw-w64-i686-gcc
|
|
|
|
mingw-w64-i686-make
|
|
|
|
|
|
|
|
- name: Compile chsrc x64
|
|
|
|
run: |
|
2024-05-25 01:11:16 +08:00
|
|
|
mingw32-make.exe CI CI_Build_Name=chsrc-x64-windows
|
2023-09-14 21:13:01 +08:00
|
|
|
|
|
|
|
- name: Compile chsrc x86
|
|
|
|
env:
|
|
|
|
MSYSTEM: MINGW32
|
|
|
|
run: |
|
2024-05-25 01:11:16 +08:00
|
|
|
mingw32-make.exe CI CI_Build_Name=chsrc-x86-windows
|
2023-09-14 21:13:01 +08:00
|
|
|
|
|
|
|
- name: List files
|
|
|
|
run: ls *.exe
|
|
|
|
|
|
|
|
- name: Release
|
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
|
# if: startsWith(github.ref, 'refs/tags/')
|
|
|
|
with:
|
2024-06-11 22:45:34 +08:00
|
|
|
tag_name: pre
|
2023-09-14 21:13:01 +08:00
|
|
|
files: |
|
|
|
|
chsrc-x64-windows.exe
|
|
|
|
chsrc-x86-windows.exe
|
|
|
|
token: ${{ secrets.CHSRC_UPLOAD }}
|