2024-04-02 16:14:05 +00:00
|
|
|
name: Makefile CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "main" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "main" ]
|
|
|
|
|
2024-04-02 16:29:50 +00:00
|
|
|
env:
|
|
|
|
RUN_IN_GITHUB_ACTION: TRUE
|
|
|
|
|
2024-04-02 16:14:05 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2024-04-02 16:16:30 +00:00
|
|
|
- uses: carlosperate/arm-none-eabi-gcc-action@v1
|
2024-04-02 16:14:05 +00:00
|
|
|
|
|
|
|
- name: clean
|
|
|
|
working-directory: ./numworks_port
|
|
|
|
run: make clean
|
|
|
|
|
|
|
|
- name: build
|
|
|
|
working-directory: ./numworks_port
|
2024-04-02 16:42:55 +00:00
|
|
|
run: make RUN_IN_GITHUB_ACTION=TRUE
|
2024-04-02 16:54:31 +00:00
|
|
|
|
|
|
|
- name: Archive elf file
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: elf_file
|
|
|
|
path: numworks_port/build/main.elf
|
|
|
|
|
|
|
|
- name: Archive bin
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: bin_file
|
|
|
|
path: numworks_port/build/main.bin
|