playzb4() on TS2068 and X1 / games.h in many targets #3757
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-on-windows-msbuild-x64 | |
on: | |
push: | |
pull_request: | |
branches: [ master ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: cmd | |
steps: | |
- name: Install choco packages | |
run: | | |
choco install unzip | |
- name: Install perl prerequisites | |
run: | | |
perl -S cpan App::cpanminus | |
perl -S cpanm App::Prove Capture::Tiny Clone CPU::Z80::Assembler Data::Dump Data::HexDump File::Path List::Uniq Modern::Perl Object::Tiny::RW Regexp::Common Test::Harness Test::HexDifferences Text::Diff Text::Table YAML::Tiny | |
- name: Checkout from git | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- name: Get latest nightly | |
run: | | |
curl -L -o z88dk-win32-latest.zip http://nightly.z88dk.org/z88dk-win32-latest.zip | |
unzip -d win32-latest z88dk-win32-latest.zip | |
- name: Find MSBuild | |
uses: microsoft/setup-msbuild@v2 | |
with: | |
msbuild-architecture: x64 | |
- name: Create config.h | |
run: | | |
call win32\config\make_config.cmd | |
- name: Build for Debug | |
run: | | |
msbuild win32\z88dk.sln -t:rebuild -verbosity:diag -property:Platform=x64 -property:Configuration=Debug | |
- name: Build for Release | |
run: | | |
msbuild win32\z88dk.sln -t:rebuild -verbosity:diag -property:Platform=x64 -property:Configuration=Release | |
- name: Copy files from nightly | |
run: | | |
copy /y bin\z88dk-z80asm.exe src\z80asm\ | |
copy /y win32-latest\z88dk\lib\z88dk-z80asm*.lib src\z80asm\ | |
copy /y win32-latest\z88dk\lib\clibs\*.lib lib\clibs\ | |
copy /y win32-latest\z88dk\bin\z88dk-zsdcc.exe bin\ | |
copy /y win32-latest\z88dk\bin\m4.exe bin\ | |
copy /y win32-latest\z88dk\libsrc\_DEVELOPMENT\lib\sccz80\*.lib libsrc\_DEVELOPMENT\lib\sccz80\ | |
copy /y win32-latest\z88dk\libsrc\_DEVELOPMENT\lib\sdcc_ix\*.lib libsrc\_DEVELOPMENT\lib\sdcc_ix\ | |
copy /y win32-latest\z88dk\libsrc\_DEVELOPMENT\lib\sdcc_iy\*.lib libsrc\_DEVELOPMENT\lib\sdcc_iy\ | |
- name: Run z80asm tests | |
run: | | |
cd src\z80asm | |
set PATH=%RUNNER_WORKSPACE%\z88dk\bin;%PATH% | |
set ZCCCFG=%RUNNER_WORKSPACE%\z88dk\lib\config | |
perl -S prove t\*.t |