Skip to content

Commit

Permalink
Merge pull request #15 from ped7g/ped_things
Browse files Browse the repository at this point in the history
adding Cirrus CI task script, preparing to test CI setup
  • Loading branch information
benbaker76 authored Jul 9, 2022
2 parents 11312bf + bc88880 commit ecedcc1
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
task:
name: Linux gcc 9/latest builds
env:
CIRRUS_CLONE_DEPTH: 1
container:
matrix:
image: gcc:9
image: gcc:latest
cpu: 2
memory: 1G
build_script: make clean && make -j3
install_script: make install && make clean
## now try the built+installed gfx2next with some tests
# this is not separate task, because that would need again build
# of sjasmplus in new container instance, so just do everything in one task
# TODO after adding some tests: tests_script: make tests

task:
name: MacOS default CC build (with unit tests)
env:
CIRRUS_CLONE_DEPTH: 1
macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-base:latest
#sw_versions2_script:
#- git --version || echo "no git"
#- bash --version || echo "no bash"
#- make --version || echo "no make"
#- cc --version || echo "no cc"
#- c++ --version || echo "no c++"
build_script:
- date
- make clean && make -j10 CC=cc
# TODO after adding some tests: test_script: make clean && make -j10 CC=cc tests

# TODO: add some tests, either through custom bash script runner, or makefile or CMake even
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

.PHONY: all install distro clean

CC := gcc

MKDIR := mkdir -p

RM := rm -rf
Expand Down Expand Up @@ -46,4 +48,4 @@ clean:

$(EXE_FULL_NAME): src/lodepng.c src/zx0.c src/gfx2next.c
$(MKDIR) $(@D)
gcc -O2 -Wall -o $@ $^ -lm
$(CC) -O2 -Wall -o $@ $^ -lm

0 comments on commit ecedcc1

Please sign in to comment.