|
|
@@ -10,28 +10,17 @@ env:
|
|
|
|
|
|
jobs:
|
|
|
build:
|
|
|
- name: ${{ matrix.OS_NAME }} (${{ matrix.configuration }})
|
|
|
- runs-on: ${{ matrix.os }}
|
|
|
+ name: ${{ matrix.platform.name }} (${{ matrix.configuration }})
|
|
|
+ runs-on: ${{ matrix.platform.os }}
|
|
|
timeout-minutes: 45
|
|
|
strategy:
|
|
|
matrix:
|
|
|
- os: [ubuntu-latest, macOS-latest, windows-latest]
|
|
|
configuration: [Debug, Release]
|
|
|
- include:
|
|
|
- - os: ubuntu-latest
|
|
|
- OS_NAME: Linux x64
|
|
|
- DOTNET_RUNTIME_IDENTIFIER: linux-x64
|
|
|
- RELEASE_ZIP_OS_NAME: linux_x64
|
|
|
-
|
|
|
- - os: macOS-latest
|
|
|
- OS_NAME: macOS x64
|
|
|
- DOTNET_RUNTIME_IDENTIFIER: osx-x64
|
|
|
- RELEASE_ZIP_OS_NAME: osx_x64
|
|
|
-
|
|
|
- - os: windows-latest
|
|
|
- OS_NAME: Windows x64
|
|
|
- DOTNET_RUNTIME_IDENTIFIER: win-x64
|
|
|
- RELEASE_ZIP_OS_NAME: win_x64
|
|
|
+ platform:
|
|
|
+ - { name: win-x64, os: windows-latest, zip_os_name: win_x64 }
|
|
|
+ - { name: linux-x64, os: ubuntu-latest, zip_os_name: linux_x64 }
|
|
|
+ - { name: linux-arm64, os: ubuntu-latest, zip_os_name: linux_arm64 }
|
|
|
+ - { name: osx-x64, os: macOS-latest, zip_os_name: osx_x64 }
|
|
|
|
|
|
fail-fast: false
|
|
|
steps:
|
|
|
@@ -52,12 +41,12 @@ jobs:
|
|
|
- name: Change config filename
|
|
|
run: sed -r --in-place 's/\%\%RYUJINX_CONFIG_FILE_NAME\%\%/PRConfig\.json/g;' src/Ryujinx.Common/ReleaseInformation.cs
|
|
|
shell: bash
|
|
|
- if: github.event_name == 'pull_request' && matrix.os != 'macOS-latest'
|
|
|
+ if: github.event_name == 'pull_request' && matrix.platform.os != 'macOS-latest'
|
|
|
|
|
|
- name: Change config filename for macOS
|
|
|
run: sed -r -i '' 's/\%\%RYUJINX_CONFIG_FILE_NAME\%\%/PRConfig\.json/g;' src/Ryujinx.Common/ReleaseInformation.cs
|
|
|
shell: bash
|
|
|
- if: github.event_name == 'pull_request' && matrix.os == 'macOS-latest'
|
|
|
+ if: github.event_name == 'pull_request' && matrix.platform.os == 'macOS-latest'
|
|
|
|
|
|
- name: Build
|
|
|
run: dotnet build -c "${{ matrix.configuration }}" -p:Version="${{ env.RYUJINX_BASE_VERSION }}" -p:SourceRevisionId="${{ steps.git_short_hash.outputs.result }}" -p:ExtraDefineConstants=DISABLE_UPDATER
|
|
|
@@ -68,46 +57,47 @@ jobs:
|
|
|
commands: dotnet test --no-build -c "${{ matrix.configuration }}"
|
|
|
timeout-minutes: 10
|
|
|
retry-codes: 139
|
|
|
+ if: matrix.platform.name != 'linux-arm64'
|
|
|
|
|
|
- name: Publish Ryujinx
|
|
|
- run: dotnet publish -c "${{ matrix.configuration }}" -r "${{ matrix.DOTNET_RUNTIME_IDENTIFIER }}" -o ./publish -p:Version="${{ env.RYUJINX_BASE_VERSION }}" -p:DebugType=embedded -p:SourceRevisionId="${{ steps.git_short_hash.outputs.result }}" -p:ExtraDefineConstants=DISABLE_UPDATER src/Ryujinx --self-contained true
|
|
|
- if: github.event_name == 'pull_request' && matrix.os != 'macOS-latest'
|
|
|
+ run: dotnet publish -c "${{ matrix.configuration }}" -r "${{ matrix.platform.name }}" -o ./publish -p:Version="${{ env.RYUJINX_BASE_VERSION }}" -p:DebugType=embedded -p:SourceRevisionId="${{ steps.git_short_hash.outputs.result }}" -p:ExtraDefineConstants=DISABLE_UPDATER src/Ryujinx --self-contained true
|
|
|
+ if: github.event_name == 'pull_request' && matrix.platform.os != 'macOS-latest'
|
|
|
|
|
|
- name: Publish Ryujinx.Headless.SDL2
|
|
|
- run: dotnet publish -c "${{ matrix.configuration }}" -r "${{ matrix.DOTNET_RUNTIME_IDENTIFIER }}" -o ./publish_sdl2_headless -p:Version="${{ env.RYUJINX_BASE_VERSION }}" -p:DebugType=embedded -p:SourceRevisionId="${{ steps.git_short_hash.outputs.result }}" -p:ExtraDefineConstants=DISABLE_UPDATER src/Ryujinx.Headless.SDL2 --self-contained true
|
|
|
- if: github.event_name == 'pull_request' && matrix.os != 'macOS-latest'
|
|
|
+ run: dotnet publish -c "${{ matrix.configuration }}" -r "${{ matrix.platform.name }}" -o ./publish_sdl2_headless -p:Version="${{ env.RYUJINX_BASE_VERSION }}" -p:DebugType=embedded -p:SourceRevisionId="${{ steps.git_short_hash.outputs.result }}" -p:ExtraDefineConstants=DISABLE_UPDATER src/Ryujinx.Headless.SDL2 --self-contained true
|
|
|
+ if: github.event_name == 'pull_request' && matrix.platform.os != 'macOS-latest'
|
|
|
|
|
|
- name: Publish Ryujinx.Ava
|
|
|
- run: dotnet publish -c "${{ matrix.configuration }}" -r "${{ matrix.DOTNET_RUNTIME_IDENTIFIER }}" -o ./publish_ava -p:Version="${{ env.RYUJINX_BASE_VERSION }}" -p:DebugType=embedded -p:SourceRevisionId="${{ steps.git_short_hash.outputs.result }}" -p:ExtraDefineConstants=DISABLE_UPDATER src/Ryujinx.Ava --self-contained true
|
|
|
- if: github.event_name == 'pull_request' && matrix.os != 'macOS-latest'
|
|
|
+ run: dotnet publish -c "${{ matrix.configuration }}" -r "${{ matrix.platform.name }}" -o ./publish_ava -p:Version="${{ env.RYUJINX_BASE_VERSION }}" -p:DebugType=embedded -p:SourceRevisionId="${{ steps.git_short_hash.outputs.result }}" -p:ExtraDefineConstants=DISABLE_UPDATER src/Ryujinx.Ava --self-contained true
|
|
|
+ if: github.event_name == 'pull_request' && matrix.platform.os != 'macOS-latest'
|
|
|
|
|
|
- name: Set executable bit
|
|
|
run: |
|
|
|
chmod +x ./publish/Ryujinx ./publish/Ryujinx.sh
|
|
|
chmod +x ./publish_sdl2_headless/Ryujinx.Headless.SDL2 ./publish_sdl2_headless/Ryujinx.sh
|
|
|
chmod +x ./publish_ava/Ryujinx.Ava ./publish_ava/Ryujinx.sh
|
|
|
- if: github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest'
|
|
|
+ if: github.event_name == 'pull_request' && matrix.platform.os == 'ubuntu-latest'
|
|
|
|
|
|
- name: Upload Ryujinx artifact
|
|
|
uses: actions/upload-artifact@v4
|
|
|
with:
|
|
|
- name: ryujinx-${{ matrix.configuration }}-${{ env.RYUJINX_BASE_VERSION }}+${{ steps.git_short_hash.outputs.result }}-${{ matrix.RELEASE_ZIP_OS_NAME }}
|
|
|
+ name: ryujinx-${{ matrix.configuration }}-${{ env.RYUJINX_BASE_VERSION }}+${{ steps.git_short_hash.outputs.result }}-${{ matrix.platform.zip_os_name }}
|
|
|
path: publish
|
|
|
- if: github.event_name == 'pull_request' && matrix.os != 'macOS-latest'
|
|
|
+ if: github.event_name == 'pull_request' && matrix.platform.os != 'macOS-latest'
|
|
|
|
|
|
- name: Upload Ryujinx.Headless.SDL2 artifact
|
|
|
uses: actions/upload-artifact@v4
|
|
|
with:
|
|
|
- name: sdl2-ryujinx-headless-${{ matrix.configuration }}-${{ env.RYUJINX_BASE_VERSION }}+${{ steps.git_short_hash.outputs.result }}-${{ matrix.RELEASE_ZIP_OS_NAME }}
|
|
|
+ name: sdl2-ryujinx-headless-${{ matrix.configuration }}-${{ env.RYUJINX_BASE_VERSION }}+${{ steps.git_short_hash.outputs.result }}-${{ matrix.platform.zip_os_name }}
|
|
|
path: publish_sdl2_headless
|
|
|
- if: github.event_name == 'pull_request' && matrix.os != 'macOS-latest'
|
|
|
+ if: github.event_name == 'pull_request' && matrix.platform.os != 'macOS-latest'
|
|
|
|
|
|
- name: Upload Ryujinx.Ava artifact
|
|
|
uses: actions/upload-artifact@v4
|
|
|
with:
|
|
|
- name: ava-ryujinx-${{ matrix.configuration }}-${{ env.RYUJINX_BASE_VERSION }}+${{ steps.git_short_hash.outputs.result }}-${{ matrix.RELEASE_ZIP_OS_NAME }}
|
|
|
+ name: ava-ryujinx-${{ matrix.configuration }}-${{ env.RYUJINX_BASE_VERSION }}+${{ steps.git_short_hash.outputs.result }}-${{ matrix.platform.zip_os_name }}
|
|
|
path: publish_ava
|
|
|
- if: github.event_name == 'pull_request' && matrix.os != 'macOS-latest'
|
|
|
+ if: github.event_name == 'pull_request' && matrix.platform.os != 'macOS-latest'
|
|
|
|
|
|
build_macos:
|
|
|
name: macOS Universal (${{ matrix.configuration }})
|