Bump version number (for real this time) #77
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: 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 |