Add ubuntu 18.04 build and
- Prepare for rpm packaging
This commit is contained in:
@@ -150,13 +150,16 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: true # false to test all, true to fail entire job if any fail
|
fail-fast: true # false to test all, true to fail entire job if any fail
|
||||||
matrix:
|
matrix:
|
||||||
distro: [ debian, ubuntu_20_04, ubuntu_21_04, ubuntu_21_10 ] # removed ubuntu_18_04 for now
|
distro: [ debian, ubuntu_18_04, ubuntu_20_04, ubuntu_21_04, ubuntu_21_10 ]
|
||||||
package: [ -p ]
|
package: [ -p ]
|
||||||
|
extension: 'deb'
|
||||||
include: # don't package these
|
include: # don't package these
|
||||||
- distro: fedora_33
|
- distro: fedora_33
|
||||||
package: ''
|
package: ''
|
||||||
|
extension: 'rpm'
|
||||||
- distro: fedora_35
|
- distro: fedora_35
|
||||||
package: ''
|
package: ''
|
||||||
|
extension: 'rpm'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -175,10 +178,10 @@ jobs:
|
|||||||
cd scripts
|
cd scripts
|
||||||
sudo ./build-sunshine.sh ${{ matrix.package }} -u -n sunshine-${{ matrix.distro }} -s ..
|
sudo ./build-sunshine.sh ${{ matrix.package }} -u -n sunshine-${{ matrix.distro }} -s ..
|
||||||
- name: Package Linux
|
- name: Package Linux
|
||||||
if: ${{ matrix.package == '-p' }}
|
if: ${{ matrix.package != '' }}
|
||||||
run: |
|
run: |
|
||||||
cd scripts
|
cd scripts
|
||||||
sudo mv ./sunshine-${{ matrix.distro }}-build/sunshine-${{ matrix.distro }}.deb ../artifacts/
|
sudo mv ./sunshine-${{ matrix.distro }}-build/sunshine-${{ matrix.distro }}.{matrix.extension} ../artifacts/
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
if: ${{ matrix.package == '-p' && ( github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' ) }}
|
if: ${{ matrix.package == '-p' && ( github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' ) }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
|||||||
Reference in New Issue
Block a user