]> git.earman.xyz Git - sensor-watch.git/commitdiff
introduce github actions
authorWillian Paixao <willian@ufpa.br>
Sun, 5 Dec 2021 12:58:44 +0000 (13:58 +0100)
committerWillian Paixao <willian@ufpa.br>
Sat, 11 Dec 2021 18:47:39 +0000 (19:47 +0100)
.github/workflows/main.yml [new file with mode: 0644]
make.mk

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644 (file)
index 0000000..ba48557
--- /dev/null
@@ -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 f6a37c7e809a9d772a34422f98a34dfa264cd051..f130173369ff1ecd969bdd5cd10e107284dcae47 100644 (file)
--- 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