From 7fea11f34cbaffe81e9ed709a8e7e1cb0600f7ce Mon Sep 17 00:00:00 2001 From: Willian Paixao Date: Sun, 5 Dec 2021 13:58:44 +0100 Subject: 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 00000000..ba485570 --- /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 f6a37c7e..f1301733 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 -- cgit v1.2.3