From 77c24490b887f073a0f52de3b65912002627fb7f Mon Sep 17 00:00:00 2001 From: Syer10 Date: Thu, 25 Mar 2021 15:52:42 -0400 Subject: [PATCH] Create test build action --- .github/workflows/Build.yml | 77 +++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 .github/workflows/Build.yml diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml new file mode 100644 index 00000000..cdc2ac1a --- /dev/null +++ b/.github/workflows/Build.yml @@ -0,0 +1,77 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +on: + push: + branches: + - master + tags: + - v* + +jobs: + build: + name: Build application packages + strategy: + matrix: + runtime: [ linux-x64, linux-x86, osx-x64, osx-x86, win-x64, win-x86 ] + include: + - runtime: linux-x64 + arch: x64 + os: ubuntu-latest + buildPackage: ./scripts/BuildLinuxDeb.sh + buildJar: ./scripts/BuildUnixJar.sh + + - runtime: linux-x86 + arch: x86 + os: ubuntu-latest + buildPackage: ./scripts/BuildLinuxDeb.sh + buildJar: ./scripts/BuildUnixJar.sh + + - runtime: osx-x64 + arch: x64 + os: macOS-latest + buildPackage: ./scripts/BuildMacPkg.sh + buildJar: ./scripts/BuildUnixJar.sh + + - runtime: osx-x86 + arch: x86 + os: macOS-latest + buildPackage: ./scripts/BuildMacPkg.sh + buildJar: ./scripts/BuildUnixJar.sh + + - runtime: win-x64 + arch: x64 + os: windows-latest + buildPackage: \&"./scripts/BuildWindowsMsi.ps1" + buildJar: \&"./scripts/BuildWindowsJar.ps1" + + - runtime: win-x86 + arch: x86 + os: windows-latest + buildPackage: \&"./scripts/BuildWindowsMsi.ps1" + buildJar: \&"./scripts/BuildWindowsJar.ps1" + + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-java@v1 + with: + java-version: '15' + architecture: ${{ matrix.arch }} + + # Build runner layout + - name: Build Package + run: ${{ matrix.buildPackage }} + + # Create runner package tar.gz/zip + - name: Package Release + run: ${{ matrix.buildJar }} + + # Upload runner package tar.gz/zip as artifact + - name: Publish Artifact + uses: actions/upload-artifact@v1 + with: + name: runner-package-${{ matrix.runtime }} + path: build/compose