Skip to content

why did we write the NSF driver assembler in lua #33

why did we write the NSF driver assembler in lua

why did we write the NSF driver assembler in lua #33

name: build-artifact-publish
on:
push:
tags:
- "*"
env:
commithash: ""
jobs:
build-matrix-publish:
runs-on: windows-2022
strategy:
matrix:
platform: [x64, Win32]
# configuration is Release only
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
fetch-depth: 0
- uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: '3.1.8'
- name: Set commit hash variable
shell: powershell
run: echo "commithash=$(git describe --tags)" >> $env:GITHUB_ENV
- name: Build program
uses: leafo/gh-actions-lua@v10
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsamd64_x86.bat"
call msbuild -m:5 -nologo -p:Configuration="Release" -p:Platform="${{ matrix.platform }}"
if %ERRORLEVEL%==1 exit %ERRORLEVEL%
call release.bat Release ${{ matrix.platform }}
- name: Upload binaries
uses: actions/upload-artifact@v4
with:
name: Dn-FamiTracker_${{ env.commithash }}_${{ github.run_id }}_${{ matrix.platform }}
path: distribute/*_${{ matrix.platform }}_Release.7z
publish-build:
needs: build-matrix-publish
runs-on: windows-2022
steps:
- name: Download binaries
uses: actions/download-artifact@v4
with:
path: Dn-FamiTracker_artifacts
pattern: Dn-FamiTracker_*
merge-multiple: true
shell: powershell
- run: ls -R
- name: Upload release
uses: marvinpinto/[email protected]
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
draft: true
prerelease: false
automatic_release_tag: draft
files: Dn-FamiTracker_artifacts/*.7z