CI: windows build packaging to ZIP, split artifacts upload for different packages
This commit is contained in:
+29
-15
@@ -53,7 +53,7 @@ jobs:
|
|||||||
build_appimage:
|
build_appimage:
|
||||||
name: AppImage
|
name: AppImage
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
needs: check_changelog
|
needs: [ check_versions, check_changelog ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -61,7 +61,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Setup Dependencies AppImage
|
- name: Setup Dependencies
|
||||||
run: |
|
run: |
|
||||||
mkdir -p artifacts
|
mkdir -p artifacts
|
||||||
sudo apt-get update -y && \
|
sudo apt-get update -y && \
|
||||||
@@ -131,14 +131,14 @@ jobs:
|
|||||||
build_linux:
|
build_linux:
|
||||||
name: Linux
|
name: Linux
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
needs: check_changelog
|
needs: [ check_versions, check_changelog ]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Setup Dependencies AppImage
|
- name: Setup Dependencies
|
||||||
run: |
|
run: |
|
||||||
mkdir -p artifacts
|
mkdir -p artifacts
|
||||||
sudo apt-get update -y && \
|
sudo apt-get update -y && \
|
||||||
@@ -174,20 +174,27 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd build
|
cd build
|
||||||
cpack -G DEB
|
cpack -G DEB
|
||||||
mv Sunshine__.deb ../artifacts/
|
mv Sunshine__.deb ../artifacts/sunshine.deb
|
||||||
|
|
||||||
- name: Build RPM
|
- name: Build RPM
|
||||||
run: |
|
run: |
|
||||||
cd build
|
cd build
|
||||||
cpack -G RPM
|
cpack -G RPM
|
||||||
mv Sunshine__.rpm ../artifacts/
|
mv Sunshine__.rpm ../artifacts/sunshine.rpm
|
||||||
|
|
||||||
- name: Upload Artifacts
|
- name: Upload Sunshine DEB
|
||||||
if: ${{ matrix.package == '-p' && ( github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' ) }}
|
if: ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: sunshine-linux
|
name: sunshine.deb
|
||||||
path: artifacts/
|
path: artifacts/sunshine.deb
|
||||||
|
|
||||||
|
- name: Upload Sunshine RPM
|
||||||
|
if: ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: sunshine.rpm
|
||||||
|
path: artifacts/sunshine.rpm
|
||||||
|
|
||||||
build_win:
|
build_win:
|
||||||
name: Windows
|
name: Windows
|
||||||
@@ -235,20 +242,27 @@ jobs:
|
|||||||
cd sunshine-windows-build
|
cd sunshine-windows-build
|
||||||
|
|
||||||
cpack -G NSIS
|
cpack -G NSIS
|
||||||
cpack -G 7Z
|
cpack -G ZIP
|
||||||
|
|
||||||
mkdir -p ../artifacts
|
mkdir -p ../artifacts
|
||||||
|
|
||||||
# Installers
|
# Installers
|
||||||
mv Sunshine__.exe ../artifacts/sunshine-windows-installer.exe
|
mv Sunshine__.exe ../artifacts/sunshine-windows-installer.exe
|
||||||
mv Sunshine__.7z ../artifacts/sunshine-windows-standalone.7z
|
mv Sunshine__.zip ../artifacts/sunshine-windows-standalone.zip
|
||||||
|
|
||||||
- name: Upload Sunshine Installer
|
- name: Upload Sunshine Windows Installer
|
||||||
if: ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
|
if: ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: sunshine-windows
|
name: sunshine-windows-installer
|
||||||
path: artifacts
|
path: artifacts/sunshine-windows-installer.exe
|
||||||
|
|
||||||
|
- name: Upload Sunshine Windows Standalone
|
||||||
|
if: ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: sunshine-windows-installer
|
||||||
|
path: artifacts/sunshine-windows-standalone.zip
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Create Release
|
name: Create Release
|
||||||
|
|||||||
Reference in New Issue
Block a user