introduce github actions

This commit is contained in:
Willian Paixao 2021-12-05 13:58:44 +01:00
parent 027b2ef4a5
commit 67d98133aa
No known key found for this signature in database
GPG key ID: 4BB3AE4D48EF1764
2 changed files with 18 additions and 1 deletions

16
.github/workflows/main.yml vendored Normal file
View file

@ -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'

View file

@ -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