ci add Makefile test
This commit is contained in:
21
.github/workflows/makefile.yml
vendored
Normal file
21
.github/workflows/makefile.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
name: Check Makefile
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master, release/v8.* ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master, release/v8.* ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Build using Makefile
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: ammaraskar/gcc-problem-matcher@master
|
||||||
|
- name: Install prerequisites
|
||||||
|
run: scripts/install-prerequisites.sh
|
||||||
|
- name: Build
|
||||||
|
working-directory: tests/makefile
|
||||||
|
run: make test_file
|
||||||
9
tests/makefile/Makefile
Normal file
9
tests/makefile/Makefile
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
LVGL_DIR := $(CURDIR)/../..
|
||||||
|
include ../../lvgl.mk
|
||||||
|
|
||||||
|
CSRCS += test.c
|
||||||
|
CFLAGS += -DLV_CONF_SKIP=1 -I$(LVGL_DIR)/..
|
||||||
|
COBJS := $(patsubst %.c, %.o, $(CSRCS))
|
||||||
|
|
||||||
|
test_file: $(COBJS)
|
||||||
|
$(CC) -o $@ $^
|
||||||
7
tests/makefile/test.c
Normal file
7
tests/makefile/test.c
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include "lvgl/lvgl.h"
|
||||||
|
|
||||||
|
int main(void) {
|
||||||
|
lv_init();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user