mirror of
https://github.com/LizardByte/Sunshine.git
synced 2024-11-18 11:10:04 +00:00
Update pull-requests_build-check.yml
-Add deb job with matrix strategy
This commit is contained in:
parent
f272b865cd
commit
502bf8ebf8
53
.github/workflows/pull-requests_build-check.yml
vendored
53
.github/workflows/pull-requests_build-check.yml
vendored
@ -7,21 +7,9 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# check_branch:
|
build_appimage:
|
||||||
# runs-on: ubuntu-latest
|
name: AppImage
|
||||||
#
|
|
||||||
# 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
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
# needs: check_branch
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@ -29,7 +17,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Setup Dependencies
|
- name: Setup Dependencies AppImage
|
||||||
run: |
|
run: |
|
||||||
mkdir -p artifacts
|
mkdir -p artifacts
|
||||||
|
|
||||||
@ -93,5 +81,38 @@ jobs:
|
|||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Artifacts
|
name: sunshine-AppImage
|
||||||
path: artifacts/
|
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/
|
||||||
|
Loading…
Reference in New Issue
Block a user