mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Added windows-latest build to CI
This commit is contained in:
11
.github/workflows/continuous-integration-v2.yml
vendored
11
.github/workflows/continuous-integration-v2.yml
vendored
@@ -21,5 +21,14 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: make tests
|
||||
- name: make tests (ubuntu)
|
||||
run: make tests
|
||||
|
||||
test-windows-latest:
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: make tests (windows)
|
||||
run: make tests
|
||||
|
||||
|
||||
7
makefile
7
makefile
@@ -1,4 +1,5 @@
|
||||
#compiler settings
|
||||
CC=gcc
|
||||
CFLAGS+=-std=c17 -pedantic -Werror
|
||||
LIBS=-lm
|
||||
|
||||
@@ -42,9 +43,9 @@ ifeq ($(shell uname),Linux)
|
||||
find . -type d -name 'out' -delete
|
||||
find . -type d -name 'obj' -delete
|
||||
else ifeq ($(OS),Windows_NT)
|
||||
del *.o *.a *.exe *.dll *.lib *.so *.dylib
|
||||
del /s out
|
||||
del /s obj
|
||||
$(RM) *.o *.a *.exe *.dll *.lib *.so *.dylib
|
||||
$(RM) out
|
||||
$(RM) obj
|
||||
else ifeq ($(shell uname),Darwin)
|
||||
find . -type f -name '*.o' -delete
|
||||
find . -type f -name '*.a' -delete
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#compiler settings
|
||||
CC=gcc
|
||||
CFLAGS=-g -Wall -Werror -Wno-unused-parameter -Wno-unused-function -Wno-unused-variable
|
||||
LIBS=-lm
|
||||
|
||||
@@ -57,9 +58,9 @@ ifeq ($(shell uname),Linux)
|
||||
find . -type d -name 'out' -delete
|
||||
find . -type d -name 'obj' -delete
|
||||
else ifeq ($(OS),Windows_NT)
|
||||
del *.o *.a *.exe *.dll *.lib *.so *.dylib
|
||||
del /s out
|
||||
del /s obj
|
||||
$(RM) *.o *.a *.exe *.dll *.lib *.so *.dylib
|
||||
$(RM) out
|
||||
$(RM) obj
|
||||
else ifeq ($(shell uname),Darwin)
|
||||
find . -type f -name '*.o' -delete
|
||||
find . -type f -name '*.a' -delete
|
||||
|
||||
Reference in New Issue
Block a user