G-Earth/.github/workflows/build.yml
2024-06-23 20:38:03 +02:00

70 lines
1.4 KiB
YAML

name: Build G-Earth
on:
push:
paths:
- '.github/workflows/**'
- 'G-Earth/**'
- 'pom.xml'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout G-Earth
uses: actions/checkout@v4
- name: Checkout G-Wasm
uses: actions/checkout@v4
with:
repository: sirjonasxx/G-Wasm
path: gwasm
ref: minimal
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
java-package: jdk+fx
distribution: 'liberica'
- name: Install G-Wasm
working-directory: gwasm
run: mvn -B install
- name: Build G-Earth
run: |
mvn -B package -Drepository=${GITHUB_REPOSITORY}
- name: Upload Mac OSX
uses: actions/upload-artifact@v4
with:
name: Mac OSX
path: Build/Mac/*
retention-days: 7
- name: Upload Linux
uses: actions/upload-artifact@v4
with:
name: Linux
path: Build/Linux/*
retention-days: 7
- name: Upload Windows x32
uses: actions/upload-artifact@v4
with:
name: Windows x32
path: Build/Windows_32bit/*
retention-days: 7
- name: Upload Windows x64
uses: actions/upload-artifact@v4
with:
name: Windows x64
path: Build/Windows_64bit/*
retention-days: 7