Skip to content

Commit

Permalink
CI: warnings as errors for safety
Browse files Browse the repository at this point in the history
  • Loading branch information
dzid26 committed Apr 10, 2024
1 parent 80333a0 commit d4a8e02
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
- name: Build
run: |
cd src/controller
./compile.bat
../../tools/cygwin/bin/make.exe clean
../../tools/cygwin/bin/make.exe CFLAGS=--Werror
- uses: actions/upload-artifact@v3
with:
name: firmware
Expand All @@ -53,7 +54,7 @@ jobs:
run: |
cd src/controller
make clean
make
make CFLAGS=--Werror
- uses: actions/upload-artifact@v3
with:
name: firmware
Expand Down
6 changes: 3 additions & 3 deletions src/controller/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ ebike_app.h pins.h eeprom.h lights.h config.h
# The list of .rel files can be derived from the list of their source files
RELS = $(addprefix $(ODIR)/,$(notdir $(EXTRASRCS:.c=.rel)))

INCLUDES = -I$(IDIR) -I$(IDIR1)
CFLAGS = -m$(PLATFORM) -D$(DEVICE) -Ddouble=float --std-c99 --nolospre --opt-code-speed --peep-asm --peep-file peep.txt
DEBUG_FLAGS = --out-fmt-ihx --debug
override INCLUDES += -I$(IDIR) -I$(IDIR1)
override CFLAGS += -m$(PLATFORM) -D$(DEVICE) -Ddouble=float --std-c99 --nolospre --opt-code-speed --peep-asm --peep-file peep.txt
override DEBUG_FLAGS += --out-fmt-ihx --debug
LIBS =

# This just provides the conventional target name "all"; it is optional
Expand Down

0 comments on commit d4a8e02

Please sign in to comment.