mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 17:30:50 +00:00
Changed a big script into separate named steps.
It makes the job log easier to navigate. Also, Pull Requests don't need a Zip file.
This commit is contained in:
parent
919645f283
commit
67fc9a4d36
23
.github/workflows/build-on-pull-request.yml
vendored
23
.github/workflows/build-on-pull-request.yml
vendored
@ -22,18 +22,25 @@ jobs:
|
||||
sudo apt-get update
|
||||
sudo apt-get install linuxdoc-tools linuxdoc-tools-info binutils-mingw-w64-i686 gcc-mingw-w64-i686 sshpass
|
||||
|
||||
- name: Build
|
||||
id: build
|
||||
- name: Build the tools.
|
||||
shell: bash
|
||||
run: make -j2 bin USER_CFLAGS=-Werror
|
||||
- name: Build the platform libraries.
|
||||
shell: bash
|
||||
run: make -j2 lib QUIET=1
|
||||
- name: Run the regression tests.
|
||||
shell: bash
|
||||
run: make test QUIET=1
|
||||
- name: Test that the samples can be built.
|
||||
shell: bash
|
||||
run: make -j2 samples
|
||||
- name: Build the document files.
|
||||
shell: bash
|
||||
run: make -j2 doc
|
||||
- name: Build 32-bit Windows versions of the tools.
|
||||
run: |
|
||||
make -j2 bin USER_CFLAGS=-Werror
|
||||
make -j2 lib QUIET=1
|
||||
make test QUIET=1
|
||||
make -j2 samples
|
||||
make -C src clean
|
||||
make -j2 bin USER_CFLAGS=-Werror CROSS_COMPILE=i686-w64-mingw32-
|
||||
make -C samples clean
|
||||
make -j2 doc zip
|
||||
|
||||
build_windows:
|
||||
name: Build (Windows)
|
||||
|
30
.github/workflows/snapshot-on-push-master.yml
vendored
30
.github/workflows/snapshot-on-push-master.yml
vendored
@ -46,24 +46,36 @@ jobs:
|
||||
sudo apt-get update
|
||||
sudo apt-get install linuxdoc-tools linuxdoc-tools-info binutils-mingw-w64-i686 gcc-mingw-w64-i686 sshpass
|
||||
|
||||
- name: Build
|
||||
id: build
|
||||
- name: Build the tools.
|
||||
shell: bash
|
||||
run: make -j2 bin USER_CFLAGS=-Werror
|
||||
- name: Build the platform libraries.
|
||||
shell: bash
|
||||
run: make -j2 lib QUIET=1
|
||||
- name: Run the regression tests.
|
||||
shell: bash
|
||||
run: make test QUIET=1
|
||||
- name: Test that the samples can be built.
|
||||
shell: bash
|
||||
run: make -j2 samples
|
||||
- name: Remove the output from the samples tests.
|
||||
shell: bash
|
||||
run: make -C samples clean
|
||||
- name: Build the document files.
|
||||
shell: bash
|
||||
run: make -j2 doc
|
||||
- name: Build and package 32-bit Windows versions of the tools.
|
||||
run: |
|
||||
make -j2 bin USER_CFLAGS=-Werror
|
||||
make -j2 lib QUIET=1
|
||||
make test QUIET=1
|
||||
make -j2 samples
|
||||
make -C src clean
|
||||
make -j2 bin USER_CFLAGS=-Werror CROSS_COMPILE=i686-w64-mingw32-
|
||||
make -C samples clean
|
||||
make -j2 doc zip
|
||||
make zip
|
||||
mv cc65.zip cc65-win32.zip
|
||||
|
||||
- name: Upload Snapshot Zip
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: cc65-snapshot-win32.zip
|
||||
path: cc65.zip
|
||||
path: cc65-win32.zip
|
||||
|
||||
# TODO: Update docs at https://github.com/cc65/doc
|
||||
# TODO: Publish snapshot zip at https://github.com/cc65/cc65.github.io
|
||||
|
Loading…
x
Reference in New Issue
Block a user