-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (51 loc) · 1.37 KB
/
CI-build.yaml
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: CI-build
on:
push:
workflow_dispatch:
jobs:
check:
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
runs-on: windows-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: shiori-check
uses: Taromati2/yaya-CI-check@v1
with:
shiori-path: .\yaya.dll
build:
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
runs-on: windows-latest
needs: check
steps:
- name: disable auto crlf
uses: steve02081504/disable-autocrlf@v1
- name: checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: core build
run: |
cd core
set GOOS=windows
set GOARCH=amd64
go build -ldflags "-H windowsgui" -o ../core.exe
cd ..
- name: md5 build
uses: Taromati2/ukagaka-mirror-md5-CI-build@v1
with:
no-push: true
build-mode: other
- name: git push
# commit and push all changes at once to avoid error
run: |
git config --local user.email "[email protected]"
git config --local user.name "apxxxxxxe"
git add .
git commit -m "CI" -a
git pull
git push origin $(git symbolic-ref --short HEAD)