Skip to content

Merge pull request #640 from Peergos/feat/drive-shift-select #1585

Merge pull request #640 from Peergos/feat/drive-shift-select

Merge pull request #640 from Peergos/feat/drive-shift-select #1585

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@v4
- uses: ilammy/msvc-dev-cmd@v1
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
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@v4
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 }}"