remove jlink, add native image build, optimize file server start #25
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 macos arm64 preview native | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Plugin on ${{ matrix.os }} ${{ matrix.architecture }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ macos-latest ] | |
architecture: [ arm64 ] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: graalvm/setup-graalvm@v1 | |
with: | |
java-version: '21' | |
distribution: 'graalvm' # See 'Options' for all available distributions | |
cache: 'maven' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
native-image-job-reports: 'true' | |
- name: Build and upload binary | |
run: | | |
bash -e bin/package-native-github.sh /tmp/download/simplewebserver.cli | |
bash -e bin/upload-bin.sh ${{ secrets.SECRET_ID }} ${{ secrets.SECRET_KEY }} ${{ secrets.BUCKET }} /tmp/download simplewebserver.cli |