Skip to content

Commit

Permalink
Added windows-latest build to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratstail91 committed Aug 13, 2024
1 parent e6ad46f commit 0ed676d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/continuous-integration-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 4 additions & 3 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#compiler settings
CC=gcc
CFLAGS+=-std=c17 -pedantic -Werror
LIBS=-lm

Expand Down Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions tests/makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#compiler settings
CC=gcc
CFLAGS=-g -Wall -Werror -Wno-unused-parameter -Wno-unused-function -Wno-unused-variable
LIBS=-lm

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0ed676d

Please sign in to comment.