1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-22 12:30:41 +00:00

Merge pull request #2101 from bbbradsmith/split2092-windows-test-manual

workflow for manually dispatched Windows build and test
This commit is contained in:
Bob Andrews 2023-05-06 21:23:50 +02:00 committed by GitHub
commit 066953c435
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 51 additions and 0 deletions

View File

@ -67,3 +67,7 @@ jobs:
- name: Build app (release) - name: Build app (release)
run: msbuild src\cc65.sln -t:rebuild -property:Configuration=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) - name: Build app (release)
run: msbuild src\cc65.sln -t:rebuild -property:Configuration=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: build_linux:
name: Build, Test, and Snapshot (Linux) name: Build, Test, and Snapshot (Linux)
if: github.repository == 'cc65/cc65' 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