From: Brendan Hansen Date: Wed, 16 Sep 2020 03:00:06 +0000 (-0500) Subject: working on TCC with github actions X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=d8c4624c5b7f8dddf8aff4e7bf0e361258430399;p=onyx.git working on TCC with github actions --- diff --git a/.github/workflows/onyx-build.yml b/.github/workflows/onyx-build.yml index 1e9d05b5..31f527b2 100644 --- a/.github/workflows/onyx-build.yml +++ b/.github/workflows/onyx-build.yml @@ -13,11 +13,9 @@ jobs: steps: - uses: actions/checkout@v2 - - name: install tcc - run: apt install tcc - name: add build folder run: mkdir build - name: make run: make - - name: ./onyx progs/odin_example.onyx - run: ./onyx progs/odin_example.onyx + - name: run tests + run: ./runtests.sh diff --git a/Makefile b/Makefile index b0dbe870..72e04827 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,12 @@ OBJ_FILES=\ build/onyxdoc.o \ build/onyx.o -CC=tcc +ifeq (, $(shell which tcc)) + CC=gcc +else + CC=tcc +endif + INCLUDES=-I./include LIBS= TARGET=./onyx diff --git a/onyx b/onyx index 4e38d8d6..d5bdd4ef 100755 Binary files a/onyx and b/onyx differ