-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (63 loc) · 1.62 KB
/
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
54
55
56
57
58
59
60
61
62
63
name: build
on:
push:
branches:
- master
jobs:
BuildJAR:
runs-on: ubuntu-latest
env:
NAME: github-actions[bot]
MAIL: github-actions[bot]@users.noreply.github.com
HEAD: ${{github.event.head_commit.message}}
DIST: ./dist
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/checkout@v4
with:
ref: gh-pages
path: ${{env.DIST}}
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
- uses: gradle/actions/setup-gradle@v3
with:
gradle-version: current
- run: gradle publish javadoc
- uses: actions/upload-artifact@v4
with:
name: build
path: build/libs/qxsl.jar
- name: 'publish docs'
run: |
git config user.name ${{env.NAME}}
git config user.email ${{env.MAIL}}
git add docs mvn
git commit -m '${{env.HEAD}}'
git push
working-directory: ${{env.DIST}}
BuildEXE:
needs: BuildJAR
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- uses: graalvm/setup-graalvm@v1
with:
version: '21.3.2'
java-version: 11
github-token: ${{secrets.GITHUB_TOKEN}}
components: native-image
- name: 'native-image'
run: |
choco install upx
cp build/qxsl.jar .
native-image -jar qxsl.jar
upx --lzma --best qxsl.exe
gh release upload nightly qxsl.jar --clobber
gh release upload nightly qxsl.exe --clobber
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}