2021-12-11 00:30:21 +00:00
|
|
|
name: Build Pull Request
|
|
|
|
on: [pull_request]
|
2021-12-12 17:27:55 +00:00
|
|
|
concurrency:
|
2021-12-11 00:30:21 +00:00
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_linux:
|
|
|
|
name: Build and Test (Linux)
|
|
|
|
runs-on: ubuntu-latest
|
2021-12-12 17:27:55 +00:00
|
|
|
|
2021-12-11 00:30:21 +00:00
|
|
|
steps:
|
|
|
|
- name: Install Dependencies
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2021-12-12 18:42:25 +00:00
|
|
|
sudo apt-get install linuxdoc-tools-info gcc-mingw-w64-x86-64
|
2021-12-12 17:27:55 +00:00
|
|
|
|
2021-12-13 04:54:17 +00:00
|
|
|
- shell: bash
|
|
|
|
run: git config --global core.autocrlf input
|
|
|
|
- name: Checkout Source
|
2022-11-18 17:39:58 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-12-13 04:54:17 +00:00
|
|
|
|
2022-04-16 16:21:57 +00:00
|
|
|
- name: Do some simple style checks
|
|
|
|
shell: bash
|
2022-05-17 12:30:41 +00:00
|
|
|
run: make -j2 checkstyle
|
2021-12-12 17:27:55 +00:00
|
|
|
- name: Build the tools.
|
|
|
|
shell: bash
|
2022-02-11 15:38:40 +00:00
|
|
|
run: make -j2 bin USER_CFLAGS=-Werror
|
|
|
|
- name: Build the utilities.
|
|
|
|
shell: bash
|
|
|
|
run: make -j2 util
|
2021-12-12 17:27:55 +00:00
|
|
|
- name: Build the platform libraries.
|
|
|
|
shell: bash
|
|
|
|
run: make -j2 lib QUIET=1
|
|
|
|
- name: Run the regression tests.
|
2021-12-11 00:30:21 +00:00
|
|
|
shell: bash
|
2021-12-12 17:27:55 +00:00
|
|
|
run: make test QUIET=1
|
|
|
|
- name: Test that the samples can be built.
|
2022-02-06 09:21:53 +00:00
|
|
|
run: make -C samples platforms
|
2022-01-30 00:23:10 +00:00
|
|
|
- name: Test that the targettest programs can be built.
|
2022-02-06 09:21:53 +00:00
|
|
|
run: make -C targettest platforms
|
2021-12-12 17:27:55 +00:00
|
|
|
- name: Build the document files.
|
|
|
|
shell: bash
|
|
|
|
run: make -j2 doc
|
2023-05-05 14:58:18 +00:00
|
|
|
- name: Upload a documents snapshot.
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: docs
|
|
|
|
path: ./html
|
2021-12-12 18:42:25 +00:00
|
|
|
- name: Build 64-bit Windows versions of the tools.
|
2021-12-11 00:30:21 +00:00
|
|
|
run: |
|
|
|
|
make -C src clean
|
2021-12-12 18:42:25 +00:00
|
|
|
make -j2 bin USER_CFLAGS=-Werror CROSS_COMPILE=x86_64-w64-mingw32-
|
2021-12-11 00:30:21 +00:00
|
|
|
|
|
|
|
build_windows:
|
|
|
|
name: Build (Windows)
|
|
|
|
runs-on: windows-latest
|
2021-12-12 17:27:55 +00:00
|
|
|
|
2021-12-11 00:30:21 +00:00
|
|
|
steps:
|
|
|
|
- shell: bash
|
|
|
|
run: git config --global core.autocrlf input
|
2021-12-12 17:27:55 +00:00
|
|
|
|
2021-12-11 00:30:21 +00:00
|
|
|
- name: Checkout Source
|
2022-11-18 18:00:35 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-12-11 00:30:21 +00:00
|
|
|
|
|
|
|
- name: Add msbuild to PATH
|
|
|
|
uses: microsoft/setup-msbuild@v1.1
|
|
|
|
|
2023-12-14 22:25:35 +00:00
|
|
|
- name: Build app (x86 debug)
|
2023-12-14 22:43:58 +00:00
|
|
|
run: msbuild src\cc65.sln -t:rebuild -property:Configuration=Debug -property:Platform=Win32
|
2023-12-14 22:25:35 +00:00
|
|
|
|
|
|
|
- name: Build app (x86 release)
|
2023-12-14 22:43:58 +00:00
|
|
|
run: msbuild src\cc65.sln -t:rebuild -property:Configuration=Release -property:Platform=Win32
|
2023-12-14 22:25:35 +00:00
|
|
|
|
|
|
|
- name: Build app (x64 release)
|
2023-12-14 22:43:58 +00:00
|
|
|
run: msbuild src\cc65.sln -t:rebuild -property:Configuration=Debug -property:Platform=x64
|
2023-12-14 22:25:35 +00:00
|
|
|
|
|
|
|
- name: Build app (x64 release)
|
2023-12-14 22:43:58 +00:00
|
|
|
run: msbuild src\cc65.sln -t:rebuild -property:Configuration=Release -property:Platform=x64
|
2023-12-14 22:25:35 +00:00
|
|
|
|
2021-12-12 17:27:55 +00:00
|
|
|
|