Merge pull request #2841 from zx70/master #5502
This file contains hidden or 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-x86 | |
| 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 Array::Compare 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: x86 | |
| - 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=Win32 -property:Configuration=Debug | |
| - name: Build for Release | |
| run: | | |
| msbuild win32\z88dk.sln -t:rebuild -verbosity:diag -property:Platform=Win32 -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\newlib\lib\sccz80\*.lib libsrc\newlib\lib\sccz80\ | |
| copy /y win32-latest\z88dk\libsrc\newlib\lib\sdcc_ix\*.lib libsrc\newlib\lib\sdcc_ix\ | |
| - 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 | |
| - name: Run ucpp tests | |
| run: | | |
| cd src\ucpp | |
| set PATH=%RUNNER_WORKSPACE%\z88dk\bin;%PATH% | |
| set ZCCCFG=%RUNNER_WORKSPACE%\z88dk\lib\config | |
| perl -S prove t\*.t |