-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #95 * ci: [tests] Use tagged v1 of the github action script [tests] Print failing tests seperated by newlines [tests] Add a lint test to CI [rt/gc] Avoid a compiler warning [tests] Fixup incorrect path in github workflow [tests] Add a CI step to run the GC tests [tests] Use the new setup command for the CI actions [tests] Run GC stress tests seperatly [tests] Fix a typo in run_tests.sh [tests] Set buildtype in github-actions workflow [build] Provide examples for BUILD_TYPE with other build settings [build] Change the spelling of the values for BUILD_TYPE [build] Remove -Wno-error from some example build settings [build] Refactor how C and C++ build flags are set [build] Remove the MCFLAGS2 make variable [tests] Add a job to test building the docs [tests] Rename the github-actions workflow "test" to "ci" [tests] Test with both GCC and clang in CI [rt/gc] Add a constant definition to avoid a magic number [rt/gc] Document units of a "len" parameter [rt] Make Plasma compile warnings-clean for clang 7 [rt] Fix errors when using clang [build] Add a build setting for the C++ compiler [build] Move build configuration into a new file [tests] Add a long output mode for CI [tests] Make run_tests.sh work without a working terminal or `tput` [tests] Setup CI
- Loading branch information
Showing
21 changed files
with
382 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
name: Test (${{ matrix.buildType }} ${{ matrix.c }}) | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
c: [gcc, clang] | ||
buildType: [dev, rel] | ||
fail-fast: false | ||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: setup | ||
uses: PlasmaLang/ci/rotd@v1 | ||
with: | ||
command: setup | ||
c: ${{ matrix.c }} | ||
buildType: ${{ matrix.buildType }} | ||
- name: build | ||
uses: PlasmaLang/ci/rotd@v1 | ||
with: | ||
command: build | ||
- name: test | ||
uses: PlasmaLang/ci/rotd@v1 | ||
with: | ||
command: test | ||
- name: gctest | ||
uses: PlasmaLang/ci/rotd@v1 | ||
if: matrix.buildType == 'dev' | ||
with: | ||
command: gctest | ||
|
||
docs: | ||
name: Build docs | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: docs | ||
uses: PlasmaLang/ci/docs@v1 | ||
|
||
lint: | ||
name: Lint (${{ matrix.buildType }}) | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
buildType: [dev, rel] | ||
fail-fast: false | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: setup | ||
uses: PlasmaLang/ci/rotd@v1 | ||
with: | ||
command: setup | ||
c: clang | ||
buildType: ${{ matrix.buildType }} | ||
lint: lint | ||
- name: build | ||
uses: PlasmaLang/ci/rotd@v1 | ||
with: | ||
command: build | ||
- name: extra | ||
uses: PlasmaLang/ci/rotd@v1 | ||
with: | ||
command: extra | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.dep | ||
.docs_warning | ||
build.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# | ||
# This is free and unencumbered software released into the public domain. | ||
# See ../LICENSE.unlicense | ||
# | ||
# vim: noet sw=4 ts=4 ft=make | ||
# | ||
|
||
# The number of parallel jobs the Mercury compiler should spawn. | ||
JOBS=8 | ||
|
||
# How the Mercury compiler should be called. You may need to adjust this if | ||
# it is not in your path. | ||
MMC_MAKE=mmc --make -j$(JOBS) --use-grade-subdirs | ||
|
||
# How the C compiler should be called. gcc and clang should both work. | ||
# Note that Mercury has its own configuration for its C backend, which is | ||
# not, and must not be changed here. | ||
CC=gcc | ||
CXX=g++ | ||
C_CXX_FLAGS_BASE=-D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE | ||
C_ONLY_FLAGS=-std=c99 | ||
CXX_ONLY_FLAGS=-std=c++11 -fno-rtti -fno-exceptions | ||
|
||
# gcc and probably clang support dependency tracking. If your compiler | ||
# doesn't uncomment the 2nd line. | ||
DEPDIR=.dep | ||
DEPFLAGS=-MT $@ -MMD -MP -MF $(DEPDIR)/$(basename $*).Td | ||
|
||
# How to call asciidoc (optional). A full path or any flags here won't work | ||
# without other changes to the makefile. | ||
ASCIIDOC=asciidoc | ||
|
||
# How to call clang-format (optional) | ||
CLANGFORMAT=clang-format | ||
|
||
# How to call indent (optional) | ||
INDENT=indent | ||
|
||
# This base configuration works on Linux but you may need to change them for | ||
# other systems / compilers. | ||
C_CXX_FLAGS=$(C_CXX_FLAGS_BASE) -O1 -Wall | ||
BUILD_TYPE=rel | ||
|
||
# This is a suitable build for development. It has assertions enabled in | ||
# the C code some of which are slow, so they shouldn't be used for | ||
# performance measurement. Comment it out to use one of the optimised | ||
# builds below. | ||
# | ||
# Note to maintainers: When Plasma is actually "used" we should change this | ||
# default and provide a better way for developers to setup a "dev" build | ||
# with assertions and other checks. | ||
|
||
# Development build options | ||
MCFLAGS=--warn-dead-procs | ||
C_CXX_FLAGS+=-Werror -DDEBUG -DPZ_DEV | ||
BUILD_TYPE=dev | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.