qxsl.ruler.{Program,Section}.Default #704
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |