Merge branch 'master' into split2089-workflow-docs-artifact

This commit is contained in:
Brad Smith
2023-05-07 13:34:37 -04:00
committed by GitHub
30 changed files with 1252 additions and 50 deletions

View File

@@ -72,3 +72,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'
@@ -115,9 +119,8 @@ jobs:
git config push.default simple
git add -A
# prevent failure when there is nothing to commit
if git commit -m "Updated from https://github.com/cc65/cc65/commit/${GITHUB_SHA}" ; then
git push
fi
git diff-index --quiet HEAD || git commit -m "Updated from https://github.com/cc65/cc65/commit/${GITHUB_SHA}"
git push
- name: Package offline documents.
run: 7z a cc65-snapshot-docs.zip ./html/*.*
- name: Upload a Documents Snapshot Zip

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