From f42bfe237e8f8a763ec374f694ff23c8c923d532 Mon Sep 17 00:00:00 2001 From: Josh Larson Date: Tue, 5 Jul 2022 02:24:38 -0500 Subject: [PATCH] Initial attempt at github actions for cross-compiling releases --- .github/workflows/package.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/package.yml diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml new file mode 100644 index 0000000..4cc81d3 --- /dev/null +++ b/.github/workflows/package.yml @@ -0,0 +1,24 @@ +name: Package +on: release + +jobs: + build-app: + strategy: + matrix: + os: [macos-latest, ubuntu-20.04, windows-latest] + name: Package + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup Java + uses: actions/setup-java@v1 + with: + java-version: 17 + - run: ./gradlew --no-daemon clean test jpackage + - run: mkdir staging && cp build/jpackage/* staging/ + - name: Upload + uses: actions/upload-artifact@v2 + with: + name: ProjectSWG-${{matrix.os}} + path: staging \ No newline at end of file