From 87dd215788605be2f4e41729dab547d31b35bbc1 Mon Sep 17 00:00:00 2001 From: Syer10 Date: Tue, 25 May 2021 16:06:02 -0400 Subject: [PATCH] Test build rpm --- .github/workflows/Build.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index 9a0b764c..8f4525fd 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -20,6 +20,13 @@ jobs: shell: bash buildPackage: ./scripts/BuildLinuxDeb.sh buildJar: ./scripts/BuildUnixJar.sh + + - runtime: linux-centos-x64 + arch: x64 + os: ubuntu-latest + shell: bash + buildPackage: ./scripts/BuildLinuxRpm.sh + buildJar: ./scripts/BuildUnixJar.sh - runtime: osx-x64 arch: x64 @@ -43,16 +50,25 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-java@v1 + if: ${{ matrix.runtime != 'linux-centos-x64' }} with: java-version: '15' architecture: ${{ matrix.arch }} - name: Build Package + if: ${{ matrix.runtime != 'linux-centos-x64' }} run: ${{ matrix.buildPackage }} - name: Build Jar + if: ${{ matrix.runtime != 'linux-centos-x64' }} run: ${{ matrix.buildJar }} + - name: Build rpm Package + if: ${{ matrix.runtime == 'linux-centos-x64' }} + uses: Syer10/CentOS-Java15-Action@v1 + with: + command: ${{ matrix.buildPackage }} + # Upload runner package tar.gz/zip as artifact - name: Publish Artifact uses: actions/upload-artifact@v1 @@ -71,4 +87,4 @@ jobs: with: artifacts: "*/binaries/main/*/*.*,*/jars/*.*" draft: true - token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + token: ${{ secrets.GITHUB_TOKEN }}