G-Earth/.github/workflows/build.yml

75 lines
1.6 KiB
YAML
Raw Normal View History

2021-11-30 20:44:20 +01:00
name: Build G-Earth
on:
push:
paths:
- '.github/workflows/**'
- 'G-Earth/**'
2022-02-12 04:11:08 +01:00
- 'pom.xml'
2021-11-30 20:44:20 +01:00
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout G-Earth
2024-06-23 20:38:03 +02:00
uses: actions/checkout@v4
2021-11-30 20:44:20 +01:00
- name: Checkout G-Wasm
2024-06-23 20:38:03 +02:00
uses: actions/checkout@v4
2021-11-30 20:44:20 +01:00
with:
repository: sirjonasxx/G-Wasm
path: gwasm
ref: minimal
- name: Set up JDK 8
2024-06-23 20:38:03 +02:00
uses: actions/setup-java@v4
2021-11-30 20:44:20 +01:00
with:
java-version: '8'
java-package: jdk+fx
distribution: 'liberica'
- name: Install G-Wasm
working-directory: gwasm
run: mvn -B install
2024-06-25 04:55:06 +02:00
# Check if GITHUB_REF_TYPE is a tag
2021-11-30 20:44:20 +01:00
- name: Build G-Earth
run: |
2024-06-25 04:55:06 +02:00
if [[ $GITHUB_REF_TYPE == 'tag' ]]; then
mvn -B package -Drepository=${GITHUB_REPOSITORY} -Dchangelist=
else
mvn -B package -Drepository=${GITHUB_REPOSITORY}
fi
2021-11-30 20:44:20 +01:00
- name: Upload Mac OSX
2024-06-23 20:38:03 +02:00
uses: actions/upload-artifact@v4
2021-11-30 20:44:20 +01:00
with:
name: Mac OSX
2024-06-23 20:38:03 +02:00
path: Build/Mac/*
2021-11-30 20:44:20 +01:00
retention-days: 7
- name: Upload Linux
2024-06-23 20:38:03 +02:00
uses: actions/upload-artifact@v4
2021-11-30 20:44:20 +01:00
with:
name: Linux
2024-06-23 20:38:03 +02:00
path: Build/Linux/*
2021-11-30 20:44:20 +01:00
retention-days: 7
- name: Upload Windows x32
2024-06-23 20:38:03 +02:00
uses: actions/upload-artifact@v4
2021-11-30 20:44:20 +01:00
with:
name: Windows x32
2024-06-23 20:38:03 +02:00
path: Build/Windows_32bit/*
2021-11-30 20:44:20 +01:00
retention-days: 7
- name: Upload Windows x64
2024-06-23 20:38:03 +02:00
uses: actions/upload-artifact@v4
2021-11-30 20:44:20 +01:00
with:
name: Windows x64
2024-06-23 20:38:03 +02:00
path: Build/Windows_64bit/*
2021-11-30 20:44:20 +01:00
retention-days: 7