fdjfgjdfg
This commit is contained in:
parent
40034b1b89
commit
3b692c8a00
15
.github/workflows/c-gc.yml
vendored
Normal file
15
.github/workflows/c-gc.yml
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
name: c-lang gc CI
|
||||
|
||||
on: [pull_request, push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: make build-gc
|
||||
run: make build-gc
|
||||
- name: make check-gc
|
||||
run: make check-gc
|
19
.github/workflows/ccpp.yml
vendored
19
.github/workflows/ccpp.yml
vendored
@ -1,19 +0,0 @@
|
||||
name: C/C++ CI
|
||||
|
||||
on: [pull_request, push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: configure
|
||||
run: ./configure
|
||||
- name: make
|
||||
run: make
|
||||
- name: make check
|
||||
run: make check
|
||||
- name: make distcheck
|
||||
run: make distcheck
|
15
.github/workflows/cpp.yml
vendored
Normal file
15
.github/workflows/cpp.yml
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
name: CPP GCC CI
|
||||
|
||||
on: [pull_request, push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: make build-gcc
|
||||
run: make build-gcc
|
||||
- name: make check-gcc
|
||||
run: make check-gcc
|
46
Makefile
46
Makefile
@ -10,11 +10,21 @@ all:
|
||||
|
||||
## BUILD ##
|
||||
# All build targets are expected in 'build/build-LANG' where 'LANG' is the unique identifier of the language used
|
||||
# FIXME: Replace 'exit 1' with helpful messages
|
||||
|
||||
# FIXME: Build in '$repodir/build/build-rustlang' instead of '$repodir/target' for multilang support
|
||||
build-rustlang:
|
||||
@ cargo build
|
||||
|
||||
build-gc:
|
||||
@ # Make a build directory
|
||||
@ [ ! -d build ] && { mkdir build || exit 1 ;}
|
||||
@ [ ! -d build/target-gc ] && { mkdir build/build-gc || exit 1 ;}
|
||||
|
||||
@ # Compilation
|
||||
@ [ ! -f build/build-gc ] && { gc src/bin/main.c -o build/build-gc/gc-zernit || exit 1 ;}
|
||||
@ printf '%s\n' "Compilation of target for gc finished"
|
||||
|
||||
# FIXME: Replace 'exit 1' with helpful messages
|
||||
build-gcc:
|
||||
@ # Make a build directory
|
||||
@ -22,7 +32,7 @@ build-gcc:
|
||||
@ [ ! -d build/target-gcc ] && { mkdir build/build-gcc || exit 1 ;}
|
||||
|
||||
@ # Compilation
|
||||
@ [ ! -f build/build-gcc ] && { gcc src/bin/main.c -o build/build-gcc/gcc-zernit || exit 1 ;}
|
||||
@ [ ! -f build/build-gcc ] && { gc src/bin/main.c -o build/build-gcc/gcc-zernit || exit 1 ;}
|
||||
@ printf '%s\n' "Compilation of target for gcc finished"
|
||||
|
||||
build-clang:
|
||||
@ -37,6 +47,40 @@ build-python:
|
||||
@ printf 'FIXME: %s\n' "translate zernit in python"
|
||||
@ exit 1
|
||||
|
||||
## CHECK/TESTS ##
|
||||
|
||||
check-gc:
|
||||
@ printf 'FIXME: %s\n' "Add tests for gc"
|
||||
@ exit 1
|
||||
|
||||
check-gcc:
|
||||
@ printf 'FIXME: %s\n' "Add tests for gcc"
|
||||
@ exit 1
|
||||
|
||||
check-clang:
|
||||
@ printf 'FIXME: %s\n' "Add tests for clang"
|
||||
@ exit 1
|
||||
|
||||
check-python:
|
||||
@ printf 'FIXME: %s\n' "Add tests for python"
|
||||
@ exit 1
|
||||
|
||||
check-rustlang:
|
||||
@ printf 'FIXME: %s\n' "Add tests for rustlang"
|
||||
@ exit 1
|
||||
|
||||
check-brainfuck:
|
||||
@ printf 'FIXME: %s\n' "Add tests for brainfuck"
|
||||
@ exit 1
|
||||
|
||||
check-shell:
|
||||
@ printf 'FIXME: %s\n' "Add tests for shell"
|
||||
@ exit 1
|
||||
|
||||
check-bash:
|
||||
@ printf 'FIXME: %s\n' "Add tests for bash"
|
||||
@ exit 1
|
||||
|
||||
## CLEAN ##
|
||||
|
||||
clean:
|
||||
|
Loading…
Reference in New Issue
Block a user