Skip to content

CI

CI #65

Workflow file for this run

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)