workflow for manually dispatched Windows build and test

This commit is contained in:
bbbradsmith 2023-05-05 22:05:10 -04:00
parent a325c95652
commit a022f7203d
3 changed files with 51 additions and 0 deletions

View File

@ -67,3 +67,7 @@ jobs:
- name: Build app (release)
run: msbuild src\cc65.sln -t:rebuild -property:Configuration=Release
# The regression tests are currently too slow to run for this Windows build,
# but the "Windows Test Manual" workflow (windows-test-manual.yml) can by
# manually dispatched from the Actions menu to test as needed.

View File

@ -29,6 +29,10 @@ jobs:
- name: Build app (release)
run: msbuild src\cc65.sln -t:rebuild -property:Configuration=Release
# The regression tests are currently too slow to run for this Windows build,
# but the "Windows Test Manual" workflow (windows-test-manual.yml) can by
# manually dispatched from the Actions menu to test as needed.
build_linux:
name: Build, Test, and Snapshot (Linux)
if: github.repository == 'cc65/cc65'

View File

@ -0,0 +1,43 @@
name: Windows Test Manual
# Manually dispatched because it's much slower than the Linux test.
on:
workflow_dispatch:
jobs:
build_windows:
name: Build, Test (Windows MSVC)
runs-on: windows-latest
steps:
- name: Git Setup
shell: bash
run: git config --global core.autocrlf input
- name: Checkout source
uses: actions/checkout@v3
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
- name: Build app (MSVC debug)
run: msbuild src\cc65.sln -t:rebuild -property:Configuration=Debug
- name: Build app (MSVC release)
run: msbuild src\cc65.sln -t:rebuild -property:Configuration=Release
- name: Build utils (MinGW)
shell: cmd
run: make -j2 util
- name: Build the platform libraries (make lib)
shell: cmd
run: make -j2 lib QUIET=1
- name: Run the regression tests (make test)
shell: cmd
run: make test QUIET=1
- name: Test that the samples can be built (make samples)
shell: cmd
run: make -j2 samples