From 502bf8ebf879b40bb81ebcaae7ae68ae195b8862 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Fri, 17 Dec 2021 22:00:37 -0500 Subject: [PATCH] Update pull-requests_build-check.yml -Add deb job with matrix strategy --- .../workflows/pull-requests_build-check.yml | 53 +++++++++++++------ 1 file changed, 37 insertions(+), 16 deletions(-) diff --git a/.github/workflows/pull-requests_build-check.yml b/.github/workflows/pull-requests_build-check.yml index 90326429..5f842283 100644 --- a/.github/workflows/pull-requests_build-check.yml +++ b/.github/workflows/pull-requests_build-check.yml @@ -7,21 +7,9 @@ on: workflow_dispatch: jobs: -# check_branch: -# runs-on: ubuntu-latest -# -# steps: -# - name: Fail Workflow -# if: github.base_ref != 'nightly' -# run: | -# echo Base: "$GITHUB_BASE_REF" -# echo Head: "$GITHUB_HEAD_REF" -# exit 1 - - build_linux: - name: Linux + build_appimage: + name: AppImage runs-on: ubuntu-20.04 -# needs: check_branch steps: - name: Checkout @@ -29,7 +17,7 @@ jobs: with: submodules: recursive - - name: Setup Dependencies + - name: Setup Dependencies AppImage run: | mkdir -p artifacts @@ -93,5 +81,38 @@ jobs: - name: Upload Artifacts uses: actions/upload-artifact@v2 with: - name: Artifacts + name: sunshine-AppImage path: artifacts/ + + build_deb: + name: deb + runs-on: ubuntu-20.04 + strategy: + matrix: + distro: [ 2004, 2104, debian ] + + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + submodules: recursive + + - name: Setup Docker + run: | + mkdir -p artifacts + + cd scripts + ./build-container.sh -f Dockerfile-${{ matrix.distro }} + - name: Build and Package deb + run: | + cd scripts + ./build-sunshine -p -s .. + + cd sunshine-build + mv sunshine.deb sunshine-${{ matrix.distro }}.deb + mv sunshine-${{ matrix.distro }}.deb ../artifacts/ + - name: Upload Artifacts + uses: actions/upload-artifact@v2 + with: + name: sunshine-${{ matrix.distro }} + path: artifacts/