gjhfhghk
This commit is contained in:
parent
6e18eb316e
commit
9e6733e0cc
26
.github/label-pr.yml
vendored
26
.github/label-pr.yml
vendored
@ -20,9 +20,27 @@
|
|||||||
- regExp: ".*\\.br+$"
|
- regExp: ".*\\.br+$"
|
||||||
labels: ["brainfuck"]
|
labels: ["brainfuck"]
|
||||||
|
|
||||||
# Repo specific
|
- regExp: ".*\\.jar+$"
|
||||||
#- regExp: ".*\\LICENSE*+$"
|
labels: ["java"]
|
||||||
# labels: ["license"]
|
|
||||||
|
|
||||||
- regExp: "^(.*\\Cargo.toml)$"
|
- regExp: ".*\\.v+$"
|
||||||
|
labels: ["vlang"]
|
||||||
|
|
||||||
|
- regExp: ".*\\.cs+$"
|
||||||
|
labels: ["csharp"]
|
||||||
|
|
||||||
|
- regExp: "tests\\.*+$"
|
||||||
|
labels: ["tests"]
|
||||||
|
|
||||||
|
- regExp: "benches\\.*+$"
|
||||||
|
labels: ["benches"]
|
||||||
|
|
||||||
|
- regExp: "LICENSE.md"
|
||||||
|
labels: ["license"]
|
||||||
|
|
||||||
|
- regExp: "^(.*\\Cargo.toml\\requirements.txt)$"
|
||||||
labels: ["dependencies"]
|
labels: ["dependencies"]
|
||||||
|
|
||||||
|
# Repository specific
|
||||||
|
- regExp: "docs\\.*+$"
|
||||||
|
labels: ["docs"]
|
20
.github/labels.yml
vendored
20
.github/labels.yml
vendored
@ -24,6 +24,14 @@
|
|||||||
color: ca0ef0
|
color: ca0ef0
|
||||||
description: "Relevant to dependencies"
|
description: "Relevant to dependencies"
|
||||||
|
|
||||||
|
- name: tests
|
||||||
|
color: 8d0fd6
|
||||||
|
description: "Relevant to tests"
|
||||||
|
|
||||||
|
- name: benches
|
||||||
|
color: cc1250
|
||||||
|
description: "Relevant to benchmarks"
|
||||||
|
|
||||||
# Priority handling
|
# Priority handling
|
||||||
- name: P - SHTF
|
- name: P - SHTF
|
||||||
color: ae00ff
|
color: ae00ff
|
||||||
@ -77,3 +85,15 @@
|
|||||||
- name: CCP
|
- name: CCP
|
||||||
color: 009dff
|
color: 009dff
|
||||||
description: "Relevant to CCP"
|
description: "Relevant to CCP"
|
||||||
|
|
||||||
|
- name: vlang
|
||||||
|
color: 03cafc
|
||||||
|
description: "Relevant to vlang"
|
||||||
|
|
||||||
|
- name: csharp
|
||||||
|
color: 08400a
|
||||||
|
description: "Relevant to csharp"
|
||||||
|
|
||||||
|
- name: java
|
||||||
|
color: ad690a
|
||||||
|
description: "Relevant to java"
|
169
.github/workflows/cona-isa.yml
vendored
169
.github/workflows/cona-isa.yml
vendored
@ -3,37 +3,168 @@ name: ConaIsa
|
|||||||
on: [pull_request]
|
on: [pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
rustlang:
|
# Rustlang
|
||||||
|
build-rustlang:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: build
|
- name: building..
|
||||||
run: make build-rustlang
|
run: make build-rustlang
|
||||||
- name: tests
|
check-rustlang:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: checking..
|
||||||
run: make check-rustlang
|
run: make check-rustlang
|
||||||
gc:
|
bench-rustlang:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: make build-gc
|
- name: running benchmarks..
|
||||||
run: make build-gc
|
run: make bench-rustlang
|
||||||
- name: make check-gc
|
|
||||||
run: make check-gc
|
# gcc-c
|
||||||
gcc:
|
build-gcc-c:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: make build-gcc
|
- name: make build-gcc-c
|
||||||
run: make build-gcc
|
run: make build-gcc-c
|
||||||
- name: make check-gcc
|
check-gcc-c:
|
||||||
run: make check-gcc
|
runs-on: ubuntu-latest
|
||||||
shell:
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: make check-gcc-c
|
||||||
|
run: make check-gcc-c
|
||||||
|
bench-gcc-c:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: make bench-gcc-c
|
||||||
|
run: make bench-gcc-c
|
||||||
|
|
||||||
|
# gcc-ccp
|
||||||
|
build-gcc-cpp:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: make build-gcc-ccp
|
||||||
|
run: make build-gcc-ccp
|
||||||
|
check-gcc-cpp:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: make check-gcc-ccp
|
||||||
|
run: make check-gcc-ccp
|
||||||
|
bench-gcc-cpp:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: make bench-gcc-ccp
|
||||||
|
run: make bench-gcc-ccp
|
||||||
|
|
||||||
|
# clang-c
|
||||||
|
build-clang-c:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: make build-clang-c
|
||||||
|
run: make build-clang-c
|
||||||
|
check-clang-c:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: make check-clang-c
|
||||||
|
run: make check-clang-c
|
||||||
|
bench-clang-c:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: make bench-clang-c
|
||||||
|
run: make bench-clang-c
|
||||||
|
|
||||||
|
# clang-ccp
|
||||||
|
build-clang-cpp:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: make build-clang-ccp
|
||||||
|
run: make build-clang-ccp
|
||||||
|
check-clang-cpp:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: make check-clang-ccp
|
||||||
|
run: make check-clang-ccp
|
||||||
|
bench-clang-cpp:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: make bench-clang-ccp
|
||||||
|
run: make bench-clang-ccp
|
||||||
|
|
||||||
|
# vlang
|
||||||
|
build-vlang:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: make build-vlang
|
||||||
|
run: make build-vlang
|
||||||
|
check-vlang:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: make check-vlang
|
||||||
|
run: make check-vlang
|
||||||
|
bench-vlang:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: make bench-vlang
|
||||||
|
run: make bench-vlang
|
||||||
|
|
||||||
|
# Golang
|
||||||
|
build-golang:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: make build-golang
|
||||||
|
run: make build-golang
|
||||||
|
check-golang:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: make check-golang
|
||||||
|
run: make check-golang
|
||||||
|
bench-golang:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: make bench-golang
|
||||||
|
run: make bench-golang
|
||||||
|
|
||||||
|
# Shell
|
||||||
|
check-shell:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: shellcheck
|
- name: shellcheck
|
||||||
uses: azohra/shell-linter@v0.2.0
|
uses: azohra/shell-linter@v0.2.0
|
||||||
python:
|
with:
|
||||||
|
path: "src/*.sh"
|
||||||
|
|
||||||
|
# Bash
|
||||||
|
check-shell:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: shellcheck
|
||||||
|
uses: azohra/shell-linter@v0.2.0
|
||||||
|
with:
|
||||||
|
path: "src/*.bash"
|
||||||
|
|
||||||
|
# Python
|
||||||
|
check-python:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@ -46,16 +177,16 @@ jobs:
|
|||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python3 -m pip3 install --upgrade pip
|
||||||
pip install -r requirements.txt
|
pip3 install -r requirements.txt
|
||||||
- name: Lint with flake8
|
- name: Lint with flake8
|
||||||
run: |
|
run: |
|
||||||
pip install flake8
|
pip3 install flake8
|
||||||
# stop the build if there are Python syntax errors or undefined names
|
# stop the build if there are Python syntax errors or undefined names
|
||||||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
||||||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: |
|
run: |
|
||||||
pip install pytest
|
pip3 install pytest
|
||||||
pytest
|
pytest
|
29
Makefile
29
Makefile
@ -27,7 +27,11 @@ build:
|
|||||||
build-rustlang:
|
build-rustlang:
|
||||||
@ cargo build --verbose
|
@ cargo build --verbose
|
||||||
|
|
||||||
build-gc:
|
# FIXME: Add logic
|
||||||
|
build-clang-c:
|
||||||
|
@ exit 1
|
||||||
|
|
||||||
|
build-gcc-c:
|
||||||
@ # Make a build directory
|
@ # Make a build directory
|
||||||
@ [ ! -d build ] && { mkdir build || exit 1 ;}
|
@ [ ! -d build ] && { mkdir build || exit 1 ;}
|
||||||
@ [ ! -d build/target-gc ] && { mkdir build/build-gc || exit 1 ;}
|
@ [ ! -d build/target-gc ] && { mkdir build/build-gc || exit 1 ;}
|
||||||
@ -39,16 +43,16 @@ build-gc:
|
|||||||
@ printf '%s\n' "Compilation of target for gc finished"
|
@ printf '%s\n' "Compilation of target for gc finished"
|
||||||
|
|
||||||
# FIXME: Replace 'exit 1' with helpful messages
|
# FIXME: Replace 'exit 1' with helpful messages
|
||||||
build-gcc:
|
build-gcc-cpp:
|
||||||
@ # Make a build directory
|
@ # Make a build directory
|
||||||
@ [ ! -d build ] && { mkdir build || exit 1 ;}
|
@ [ ! -d build ] && { mkdir build || exit 1 ;}
|
||||||
@ [ ! -d build/target-gcc ] && { mkdir build/build-gcc || exit 1 ;}
|
@ [ ! -d build/target-gcc ] && { mkdir build/build-gcc || exit 1 ;}
|
||||||
|
|
||||||
@ # Compilation
|
@ # Compilation
|
||||||
@ [ ! -f build/build-gcc ] && { gc src/bin/main.c -o build/build-gcc/gcc-zernit || exit 1 ;}
|
@ [ ! -f build/build-gcc ] && { gcc src/bin/main.c -o build/build-gcc/gcc-zernit || exit 1 ;}
|
||||||
@ printf '%s\n' "Compilation of target for gcc finished"
|
@ printf '%s\n' "Compilation of target for gcc finished"
|
||||||
|
|
||||||
build-clang:
|
build-clang-ccp:
|
||||||
@ printf 'FIXME: %s\n' "translate zernit in clang"
|
@ printf 'FIXME: %s\n' "translate zernit in clang"
|
||||||
@ exit 1
|
@ exit 1
|
||||||
|
|
||||||
@ -70,15 +74,15 @@ check:
|
|||||||
@ printf 'FIXME: %s\n' "Check all targets if executed"
|
@ printf 'FIXME: %s\n' "Check all targets if executed"
|
||||||
@ exit 1
|
@ exit 1
|
||||||
|
|
||||||
check-gc:
|
check-gcc-c:
|
||||||
@ printf 'FIXME: %s\n' "Add tests for gc"
|
@ printf 'FIXME: %s\n' "Add tests for gc"
|
||||||
@ exit 1
|
@ exit 1
|
||||||
|
|
||||||
check-gcc:
|
check-clang-c:
|
||||||
@ printf 'FIXME: %s\n' "Add tests for gcc"
|
@ printf 'FIXME: %s\n' "Add tests for gcc"
|
||||||
@ exit 1
|
@ exit 1
|
||||||
|
|
||||||
check-clang:
|
check-gcc-ccp:
|
||||||
@ printf 'FIXME: %s\n' "Add tests for clang"
|
@ printf 'FIXME: %s\n' "Add tests for clang"
|
||||||
@ exit 1
|
@ exit 1
|
||||||
|
|
||||||
@ -106,6 +110,17 @@ check-vlang:
|
|||||||
@ printf 'FIXME: %s\n' "Add tests for vlang"
|
@ printf 'FIXME: %s\n' "Add tests for vlang"
|
||||||
@ exit 1
|
@ exit 1
|
||||||
|
|
||||||
|
## BENCHES ##
|
||||||
|
|
||||||
|
# FIXME: Run all benches if this is executed
|
||||||
|
bench:
|
||||||
|
@ exit 1
|
||||||
|
|
||||||
|
# FIXME: Run vendor and
|
||||||
|
bench-rustlang:
|
||||||
|
@ exit 1
|
||||||
|
@ cargo bench
|
||||||
|
|
||||||
## CLEAN ##
|
## CLEAN ##
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
OBJS = main.c
|
|
||||||
CC = gcc
|
|
||||||
C_FLAGS = -w -pedantic
|
|
||||||
OBJ_NAME = main
|
|
||||||
|
|
||||||
all: $(OBJS)
|
|
||||||
$(CC) $(OBJS) $(C_FLAGS) -o $(OBJ_NAME)
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user