fix: testing CI

This commit is contained in:
ABeltramo
2022-04-29 23:10:27 +01:00
parent af342c8cc9
commit 6858f9c8d4

View File

@@ -32,13 +32,12 @@ jobs:
check_versions: check_versions:
name: Check Versions name: Check Versions
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/master' || github.base_ref == 'master' }}
# base_ref for pull request check, ref for push
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Check CMakeLists.txt Version - name: Check CMakeLists.txt Version
if: ${{ github.ref == 'refs/heads/master' || github.base_ref == 'master' }}
run: | run: |
version=$(grep -o -E '^project\(Sunshine VERSION [0-9]+\.[0-9]+\.[0-9]+\)' CMakeLists.txt | grep -o -E '[0-9]+\.[0-9]+\.[0-9]+') version=$(grep -o -E '^project\(Sunshine VERSION [0-9]+\.[0-9]+\.[0-9]+\)' CMakeLists.txt | grep -o -E '[0-9]+\.[0-9]+\.[0-9]+')
echo "cmakelists_version=${version}" >> $GITHUB_ENV echo "cmakelists_version=${version}" >> $GITHUB_ENV
@@ -134,7 +133,7 @@ jobs:
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage && chmod +x linuxdeploy-x86_64.AppImage wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage && chmod +x linuxdeploy-x86_64.AppImage
./linuxdeploy-x86_64.AppImage --appdir ../AppDir -e ../appimage-build/sunshine -i "../$ICON_FILE" -d "../appimage-build/$DESKTOP_FILE" --output appimage ./linuxdeploy-x86_64.AppImage --appdir ../AppDir -e ../build/sunshine -i "../$ICON_FILE" -d "../build/$DESKTOP_FILE" --output appimage
mv sunshine*.AppImage sunshine.AppImage mv sunshine*.AppImage sunshine.AppImage
mkdir sunshine && mv sunshine.AppImage sunshine/ mkdir sunshine && mv sunshine.AppImage sunshine/
@@ -185,7 +184,7 @@ jobs:
- name: Extra dependencies - name: Extra dependencies
run: | run: |
sudo apt-get update -y sudo apt-get update -y
sudo apt-get install -y cpack sudo apt-get install -y cmake # will install cpack
- name: Build DEB and RPM - name: Build DEB and RPM
run: | run: |
@@ -256,32 +255,33 @@ jobs:
cd sunshine-windows-build cd sunshine-windows-build
cpack cpack
mkdir -p artifacts/standalone mkdir -p ../artifacts
mkdir -p artifacts/web
mkdir -p artifacts/shaders/directx
# Installers # Installers
mv Sunshine__.exe artifacts/sunshine-windows-installer.exe mv Sunshine__.exe ../artifacts/sunshine-windows-installer.exe
# Standalone # Standalone
mv ../assets/web artifacts/web del ..\assets\apps_linux.json
mv tools artifacts/tools 7z a sunshine-windows.zip ..\assets
mv ../assets/shaders/directx artifacts/shaders/directx 7z a sunshine-windows.zip sunshine.exe
mv ../assets/apps_windows.json artifacts/apps_windows.json 7z a sunshine-windows.zip tools\dxgi-info.exe
mv ../assets/sunshine.conf artifacts/sunshine.conf 7z a sunshine-windows.zip tools\audio-info.exe
mv sunshine.exe artifacts/sunshine.exe 7z a sunshine-windows.zip tools\sunshinesvc.exe
7z a sunshine-windows.zip ..\tools\install-service.bat
7z a sunshine-windows.zip ..\tools\uninstall-service.bat
move "sunshine-windows.zip" "../artifacts"
- name: Upload Sunshine Installer - name: Upload Sunshine 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-installer name: sunshine-windows
path: artifacts/sunshine-windows-installer.exe path: artifacts
- name: Upload Sunshine executable - name: Upload Sunshine executable
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-standalone name: sunshine-windows-standalone
path: artifacts/standalone path: sunshine-windows-build/artifacts/standalone
- name: Create Release - name: Create Release
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
uses: SunshineStream/actions/create_release@master uses: SunshineStream/actions/create_release@master