|
@@ -2,7 +2,8 @@ name: Build job
|
|
|
|
|
|
|
|
on:
|
|
on:
|
|
|
push:
|
|
push:
|
|
|
- branches: [ master ]
|
|
|
|
|
|
|
+ # branches: [ master ]
|
|
|
|
|
+ branches: [ ci/artifact-tuning ]
|
|
|
paths-ignore:
|
|
paths-ignore:
|
|
|
- '.github/*'
|
|
- '.github/*'
|
|
|
- '.github/ISSUE_TEMPLATE/**'
|
|
- '.github/ISSUE_TEMPLATE/**'
|
|
@@ -28,7 +29,7 @@ jobs:
|
|
|
- os: ubuntu-latest
|
|
- os: ubuntu-latest
|
|
|
OS_NAME: Linux x64
|
|
OS_NAME: Linux x64
|
|
|
DOTNET_RUNTIME_IDENTIFIER: linux-x64
|
|
DOTNET_RUNTIME_IDENTIFIER: linux-x64
|
|
|
- RELEASE_ZIP_OS_NAME: linux_x64.tar.gz
|
|
|
|
|
|
|
+ RELEASE_ZIP_OS_NAME: linux_x64
|
|
|
|
|
|
|
|
- os: macOS-latest
|
|
- os: macOS-latest
|
|
|
OS_NAME: MacOS x64
|
|
OS_NAME: MacOS x64
|
|
@@ -59,22 +60,11 @@ jobs:
|
|
|
- name: Test
|
|
- name: Test
|
|
|
run: dotnet test -c "${{ matrix.configuration }}"
|
|
run: dotnet test -c "${{ matrix.configuration }}"
|
|
|
- name: Publish
|
|
- name: Publish
|
|
|
- run: dotnet publish -c "${{ matrix.configuration }}" -r "${{ matrix.DOTNET_RUNTIME_IDENTIFIER }}" -o ./publish /p:Version="1.0.0" /p:SourceRevisionId="${{ steps.git_short_hash.outputs.result }}" /p:ExtraDefineConstants=DISABLE_UPDATER
|
|
|
|
|
- if: github.event_name == 'pull_request'
|
|
|
|
|
- - name: Packing artifacts (Normal)
|
|
|
|
|
- run: |
|
|
|
|
|
- mkdir output
|
|
|
|
|
- 7z a "./output/ryujinx-${{ matrix.configuration }}-1.0.0+${{ steps.git_short_hash.outputs.result }}-${{ matrix.RELEASE_ZIP_OS_NAME }}.zip" ./publish
|
|
|
|
|
- if: github.event_name == 'pull_request' && matrix.os != 'ubuntu-latest'
|
|
|
|
|
- - name: Packing artifacts (Linux only)
|
|
|
|
|
- run: |
|
|
|
|
|
- mkdir output
|
|
|
|
|
- 7z a "ryujinx-${{ matrix.configuration }}-1.0.0+${{ steps.git_short_hash.outputs.result }}-${{ matrix.RELEASE_ZIP_OS_NAME }}.tar" ./publish
|
|
|
|
|
- 7z a "./output/ryujinx-${{ matrix.configuration }}-1.0.0+${{ steps.git_short_hash.outputs.result }}-${{ matrix.RELEASE_ZIP_OS_NAME }}.tar.gz" "ryujinx-${{ matrix.configuration }}-1.0.0+${{ steps.git_short_hash.outputs.result }}-${{ matrix.RELEASE_ZIP_OS_NAME }}.tar"
|
|
|
|
|
- if: github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest'
|
|
|
|
|
|
|
+ run: dotnet publish -c "${{ matrix.configuration }}" -r "${{ matrix.DOTNET_RUNTIME_IDENTIFIER }}" -o ./publish /p:Version="1.0.0" /p:SourceRevisionId="${{ steps.git_short_hash.outputs.result }}" /p:ExtraDefineConstants=DISABLE_UPDATER Ryujinx
|
|
|
|
|
+ #if: github.event_name == 'pull_request'
|
|
|
- name: Upload artifacts
|
|
- name: Upload artifacts
|
|
|
uses: actions/upload-artifact@v2
|
|
uses: actions/upload-artifact@v2
|
|
|
with:
|
|
with:
|
|
|
- name: Output ${{ matrix.OS_NAME }} (${{ matrix.configuration }})
|
|
|
|
|
- path: output
|
|
|
|
|
- if: github.event_name == 'pull_request'
|
|
|
|
|
|
|
+ name: ryujinx-${{ matrix.configuration }}-1.0.0+${{ steps.git_short_hash.outputs.result }}-${{ matrix.RELEASE_ZIP_OS_NAME }}
|
|
|
|
|
+ path: publish
|
|
|
|
|
+ #if: github.event_name == 'pull_request'
|