From 67d98133aac5ecb831ab7ae3f7519db1a765fb2a Mon Sep 17 00:00:00 2001 From: Willian Paixao Date: Sun, 5 Dec 2021 13:58:44 +0100 Subject: [PATCH] introduce github actions --- .github/workflows/main.yml | 16 ++++++++++++++++ make.mk | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..ba48557 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,16 @@ +name: Build + +on: [pull_request, push] + +jobs: + build: + container: + image: ghcr.io/armmbed/mbed-os-env:latest + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Compile Starter Project + run: make + working-directory: 'apps/beats-time/make' + diff --git a/make.mk b/make.mk index f6a37c7..f130173 100644 --- a/make.mk +++ b/make.mk @@ -20,7 +20,8 @@ else MKDIR = mkdir endif -CFLAGS += -W -Wall --std=gnu99 -Os +CFLAGS += -W -Wall -Wextra -Wmissing-prototypes -Wmissing-declarations +CFLAGS += --std=gnu99 -Os CFLAGS += -fno-diagnostics-show-caret CFLAGS += -fdata-sections -ffunction-sections CFLAGS += -funsigned-char -funsigned-bitfields