mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
The workflow only ran on push, so a pull request opened from a fork never got a build, and neither did the host-side unit tests that run in the same job.
27 lines
599 B
YAML
27 lines
599 B
YAML
name: Build firmware
|
|
|
|
on:
|
|
push:
|
|
branches: ['**']
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: debian:trixie
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
apt update
|
|
apt install make gcc sdcc xxd python-is-python3 libjson-c-dev zlib1g-dev -y
|
|
- name: Run the host-side unit tests
|
|
run: make -C test
|
|
- name: Check if machine.c can be compiled for all machines
|
|
run: make machine_check
|
|
- name: Make project
|
|
run: make MACHINE="KP_9000_6XHML_X2"
|