Skip to content

Commit

Permalink
last up to date commit
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymous committed Jun 16, 2024
0 parents commit 33a2390
Show file tree
Hide file tree
Showing 107 changed files with 87,626 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: C/C++ CI

on:
push:
branches: [ master , dev ]
pull_request:
branches: [ master , dev ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache packages
uses: actions/cache@v2
with:
key: nilorea-library-cache
path: |
~/apt-cache
- name: install dependencies
run: |
export APT_CACHE_DIR=~/apt-cache && mkdir -pv $APT_CACHE_DIR
sudo apt-get update -yq && sudo apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y liballegro5-dev valgrind libpcre3-dev
- name: make library
run: make
- name: make examples
run: |
make examples
- name: make tests
run: |
cd examples
chmod +Xx valgrind.sh
./valgrind.sh
cd ..
55 changes: 55 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
*.o
*.exe
*.a
.*.sw*
*.bak
examples/ex_base64_encode
examples/ex_crypto
examples/ex_configfile
examples/ex_exceptions
examples/ex_hash
examples/ex_list
examples/ex_monolith
examples/ex_network
examples/ex_nstr
examples/ex_signals
examples/ex_common
examples/ex_network
examples/ex_gui_particles
examples/ex_log
examples/ex_pcre
examples/ex_threads
examples/ex_debug_mem
examples/sslexample.c
examples/ex_gui_netclient
examples/ex_gui_netserver
examples/ex_gui_dictionary
examples/ex_kafka
examples/cJSON.c
examples/cJSON.h
examples/*.so*
examples/*.dll
examples/*.a
examples/*.exe
api_nilorea/
*.new
cmake_build/
libnilorea*
*.layout
*.depend
*.txt
*.log
*.lock
*.tmp
*.obj
*.decoded
*.encoded
*.crypt_decoded_question
*.crypt_encoded
*.crypt_decoded
.fuse*
html/
docs/
build/
examples/kafka_produce_conf_test.cfg
examples/kafka_consume_conf_test.cfg
55 changes: 55 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
image: gcc
cache:
key: apt-cache
paths:
- apt-cache/
before_script:
- if [ "$USE_PROXY" == "1" ] && [ -d "/etc/apt/apt.conf.d/" ] ; then echo "$APT_PROXY" > /etc/apt/apt.conf.d/proxy.conf
; export http_proxy="$http_proxy" ; export https_proxy="$https_proxy" ; export ftp_proxy="$ftp_proxy"
; git config --global http.proxy "$http_proxy"
; fi
; export APT_CACHE_DIR=`pwd`/apt-cache && mkdir -pv $APT_CACHE_DIR
; apt-get update -yq && apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y liballegro5-dev valgrind libpcre3-dev
stages:
- build
- tests
- test
build_lib:
stage: build
script:
- make -j 6
cache:
key: apt-cache
paths:
- apt-cache/
artifacts:
paths:
- libnilorea.a
expire_in: 1 week
build_examples:
stage: build
script:
- make -j 6 examples
cache:
key: apt-cache
paths:
- apt-cache/
artifacts:
paths:
- examples/ex_*
- libnilorea.a
- libnilorea.so
expire_in: 1 week
tests:
stage: tests
script:
- cd examples ; chmod +Xx valgrind.sh ; ./valgrind.sh
cache:
key: apt-cache
paths:
- apt-cache/
sast:
stage: test
include:
- template: Security/SAST.gitlab-ci.yml
- template: Security/Secret-Detection.gitlab-ci.yml
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[submodule "external/nuklear"]
path = external/nuklear
url = https://github.com/Immediate-Mode-UI/Nuklear.git
[submodule "external/cJSON"]
path = external/cJSON
url = https://github.com/DaveGamble/cJSON.git
[submodule "external/librdkafka"]
path = external/librdkafka
url = https://github.com/confluentinc/librdkafka.git
3 changes: 3 additions & 0 deletions .jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@Library('JenkinsSharedLibrary@feature/TU_API')_
AssemblyJobFactory p = new AssemblyJobFactory(this)
p.executeCurrentJob()
Loading

0 comments on commit 33a2390

Please sign in to comment.