Add tests for net player validation (#6492) #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Xbox One / Series | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- '*.md' | |
pull_request: | |
types: [opened, synchronize] | |
paths-ignore: | |
- '*.md' | |
release: | |
types: [published] | |
paths-ignore: | |
- '*.md' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: ccache | |
uses: hendrikmuhs/ccache-action@v1.2 | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v1.3 | |
with: | |
msbuild-architecture: x64 | |
- name: Configure git | |
shell: cmd | |
run: | | |
git config --global core.filemode false | |
git config --global core.autocrlf false | |
- name: Build | |
shell: cmd | |
run: | | |
cd ${{ github.workspace }}\Packaging\xbox-one | |
build.bat | |
- name: Copy artifacts to package directory | |
run: > | |
New-Item -Path build\uwp-project -Name pkg -ItemType Directory -Force && | |
Get-Childitem -Path build\uwp-project\AppxPackages, build\uwp-project\Release | |
-Include Microsoft.VCLibs.x64.*.appx, devilutionX_*_x64.appx -File -Recurse | | |
Copy-Item -Destination build\uwp-project\pkg\ | |
- name: Upload-Package | |
if: ${{ !env.ACT }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: devilutionx-xbox-one-series | |
if-no-files-found: error | |
path: | | |
build/uwp-project/pkg/ | |
- name: Package Release | |
if: ${{ github.event_name == 'release' && !env.ACT }} | |
working-directory: ${{github.workspace}}/build/uwp-project/pkg/ | |
run: 7z a -r ../../../devilutionx-xbox-one-series.zip . | |
- name: Update Release | |
if: ${{ github.event_name == 'release' && !env.ACT }} | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
file: devilutionx-xbox-one-series.zip | |
overwrite: true |