Browse Source

CI: Add 32/64 bit build variations to builds with extra warnings.

pull/2917/head
Rokas Kupstys 5 years ago
committed by omar
parent
commit
bf6d1ba3d1
  1. 23
      .github/workflows/build.yml
  2. 2
      examples/example_null/Makefile

23
.github/workflows/build.yml

@ -154,10 +154,27 @@ jobs:
- name: Install Dependencies - name: Install Dependencies
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y libglfw3-dev libsdl2-dev sudo apt-get install -y libglfw3-dev libsdl2-dev gcc-multilib g++-multilib
- name: Build example_null (extra warnings) - name: Build example_null (extra warnings, gcc 32-bit)
run: make -C examples/example_null EXTRA_WARNINGS=1 run: |
make -C examples/example_null clean
CXXFLAGS="$CXXFLAGS -m32" make -C examples/example_null EXTRA_WARNINGS=1
- name: Build example_null (extra warnings, gcc 64-bit)
run: |
make -C examples/example_null clean
CXXFLAGS="$CXXFLAGS -m64" make -C examples/example_null EXTRA_WARNINGS=1
- name: Build example_null (extra warnings, clang 32-bit)
run: |
make -C examples/example_null clean
CXXFLAGS="$CXXFLAGS -m32" CXX=clang++ make -C examples/example_null EXTRA_WARNINGS=1
- name: Build example_null (extra warnings, clang 64-bit)
run: |
make -C examples/example_null clean
CXXFLAGS="$CXXFLAGS -m64" CXX=clang++ make -C examples/example_null EXTRA_WARNINGS=1
- name: Build example_null (unity build) - name: Build example_null (unity build)
run: make -C examples/example_null UNITY_BUILD=1 run: make -C examples/example_null UNITY_BUILD=1

2
examples/example_null/Makefile

@ -15,7 +15,7 @@ endif
OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES)))) OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES))))
UNAME_S := $(shell uname -s) UNAME_S := $(shell uname -s)
CXXFLAGS = -I../ -I../../ CXXFLAGS += -I../ -I../../
CXXFLAGS += -g -Wall -Wformat CXXFLAGS += -g -Wall -Wformat
LIBS = LIBS =

Loading…
Cancel
Save