2023-10-24 20:54:35 +00:00
|
|
|
# This workflow uses actions that are not certified by GitHub.
|
|
|
|
# They are provided by a third-party and are governed by
|
|
|
|
# separate terms of service, privacy policy, and support
|
|
|
|
# documentation.
|
|
|
|
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
|
|
|
|
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
|
|
|
|
|
2023-10-24 21:08:04 +00:00
|
|
|
name: Build AppleCommander
|
2023-10-24 20:54:35 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "main" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "main" ]
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up JDK 11
|
|
|
|
uses: actions/setup-java@v3
|
|
|
|
with:
|
|
|
|
java-version: '11'
|
|
|
|
distribution: 'temurin'
|
|
|
|
- name: Build with Gradle
|
|
|
|
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
|
|
|
|
with:
|
|
|
|
arguments: build
|
2023-10-24 21:08:04 +00:00
|
|
|
env:
|
|
|
|
# The SWT image tests fail in the pipeline; disable them.
|
|
|
|
AC_SKIP_SWT_TESTS: true
|
2023-10-24 21:37:34 +00:00
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2023-10-24 22:17:46 +00:00
|
|
|
name: build-artifacts
|
|
|
|
path: |
|
|
|
|
app/ant-ac/build/libs/AppleCommander-*.jar
|
|
|
|
app/cli-ac/build/libs/AppleCommander-*.jar
|
|
|
|
app/cli-acx/build/libs/AppleCommander-*.jar
|
|
|
|
app/gui-swt-linux-aarch64/build/libs/AppleCommander-*.jar
|
|
|
|
app/gui-swt-linux-arm/build/libs/AppleCommander-*.jar
|
|
|
|
app/gui-swt-linux-x86_64/build/libs/AppleCommander-*.jar
|
|
|
|
app/gui-swt-macosx-aarch64/build/libs/AppleCommander-*.jar
|
|
|
|
app/gui-swt-macosx-x86_64/build/libs/AppleCommander-*.jar
|
|
|
|
app/gui-swt-win32-x86_64/build/libs/AppleCommander-*.jar
|
2023-10-24 21:37:34 +00:00
|
|
|
if-no-files-found: error
|