Skip to content

Merge branch 'xmake-tests' #63

Merge branch 'xmake-tests'

Merge branch 'xmake-tests' #63

Workflow file for this run

name: Build artifact on commit
on:
pull_request:
push:
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Create environment variables
run: |
$commitSha = (git rev-parse --short $env:GITHUB_SHA)
echo "NGPLUS_COMMIT_SHA=${commitSha}" | Out-File -FilePath $env:GITHUB_ENV -Encoding UTF8 -Append
- name: Setup XMake
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
- name: Update XMake repo
run: xmake.exe repo --update
- name: Configure XMake and install dependencies
run: xmake.exe config --yes
- name: Build and bundle with XMake
run: xmake.exe package
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: newgameplus_${{ env.NGPLUS_COMMIT_SHA }}
path: packaging/
if-no-files-found: error
- name: Upload PDB
uses: actions/upload-artifact@v4
with:
name: newgameplus_pdb_${{ env.NGPLUS_COMMIT_SHA }}
path: packaging_pdb/
if-no-files-found: error