Update pull-requests_build-check.yml

-Fix command that moves deb package
-Separate setup, build, and package steps
This commit is contained in:
ReenigneArcher 2021-12-18 16:51:49 -05:00
parent ca8917dd1b
commit 65b9b653d0

View File

@ -98,29 +98,20 @@ jobs:
with:
submodules: recursive
- name: Build
- name: Setup Container deb
run: |
mkdir -p artifacts
cd scripts
sudo ./build-container.sh -c build -f Dockerfile-${{ matrix.distro }} -n sunshine-${{ matrix.distro }}
- name: Build deb
run: |
cd scripts
sudo ./build-sunshine.sh -p -u -n sunshine-${{ matrix.distro }} -s ..
ls
echo "...."
ls ..
cd sunshine-${{ matrix.distro }}-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: Package deb
run: |
cd scripts
mv ./sunshine-${{ matrix.distro }}-build/sunshine-${{ matrix.distro }}.deb ../artifacts/
- name: Upload Artifacts
if: ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
uses: actions/upload-artifact@v2