From 69642d2db387a6833494688daa1cce9edb0d8cbb Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Sat, 18 Dec 2021 11:03:56 -0500 Subject: [PATCH] Update pull-requests_build-check.yml --- .../workflows/pull-requests_build-check.yml | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pull-requests_build-check.yml b/.github/workflows/pull-requests_build-check.yml index a13c6ff5..4c340d26 100644 --- a/.github/workflows/pull-requests_build-check.yml +++ b/.github/workflows/pull-requests_build-check.yml @@ -79,6 +79,7 @@ jobs: cd appimage_temp wget https://github.com/TheAssassin/appimagelint/releases/download/continuous/appimagelint-x86_64.AppImage && chmod +x appimagelint-x86_64.AppImage && ./appimagelint-x86_64.AppImage ./sunshine/sunshine.AppImage - name: Upload Artifacts + if: ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }} uses: actions/upload-artifact@v2 with: name: sunshine-AppImage @@ -97,21 +98,28 @@ jobs: with: submodules: recursive - - name: Setup Docker + - name: Build run: | mkdir -p artifacts cd scripts - ./build-container.sh -f Dockerfile-${{ matrix.distro }} - - name: Build and Package deb - run: | - cd scripts - ./build-sunshine.sh -p -s .. + sudo ./build-container.sh -f Dockerfile-${{ matrix.distro }} -n sunshine-${{ matrix.distro }} + + ls cd sunshine-build mv sunshine.deb sunshine-${{ matrix.distro }}.deb mv sunshine-${{ matrix.distro }}.deb ../artifacts/ +# - name: Build and Package deb +# run: | +# cd scripts +# sudo ./build-sunshine.sh -p -n sunshine-${{ matrix.distro }} -s .. +# +# cd sunshine-build +# mv sunshine.deb sunshine-${{ matrix.distro }}.deb +# mv sunshine-${{ matrix.distro }}.deb ../artifacts/ - name: Upload Artifacts + if: ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }} uses: actions/upload-artifact@v2 with: name: sunshine-${{ matrix.distro }}