-
-
Notifications
You must be signed in to change notification settings - Fork 182
53 lines (44 loc) · 1.09 KB
/
windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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: |
mingw32-make.exe CI CI_Build_Name=chsrc-x64-windows
- name: Compile chsrc x86
env:
MSYSTEM: MINGW32
run: |
mingw32-make.exe CI CI_Build_Name=chsrc-x86-windows
- name: List files
run: ls *.exe
- name: Release
uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: pre
files: |
chsrc-x64-windows.exe
chsrc-x86-windows.exe
token: ${{ secrets.CHSRC_UPLOAD }}