Skip to content

Merge pull request #491 from Peergos/fix/hex-viewer-option #772

Merge pull request #491 from Peergos/fix/hex-viewer-option

Merge pull request #491 from Peergos/fix/hex-viewer-option #772

Workflow file for this run

name: Native build
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
bin: [peergos, peergos.exe]
exclude:
- os: ubuntu-latest
bin: peergos.exe
- os: windows-latest
bin: peergos
- os: macos-latest
bin: peergos.exe
fail-fast: false
steps:
- uses: actions/checkout@v1
- uses: ilammy/msvc-dev-cmd@v1
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 17
- name: Build with Ant
run: ant -noinput -buildfile build.xml peergos_submodule_sync dist
- name: Install GraalVM and native-image
shell: bash
run: cd native-build && java InstallNativeImage.java
- name: Build native image of Peergos
shell: bash
run: cd native-build && java BuildNativeImage.java
- name: Upload static binary artifact
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.os }}-peergos
path: "./native-build/${{ matrix.bin }}"
# - name: Build Peergos installer
# shell: bash
# run: cd packager && java PackagePeergos.java
# - name: Upload package artifact
# uses: actions/upload-artifact@v2
# with:
# name: ${{ env.artifact }}
# path: "./packager/${{ env.artifact }}"