Skip to content

Commit

Permalink
install jq in workflow for middleware test script
Browse files Browse the repository at this point in the history
  • Loading branch information
ngn13 committed Jan 14, 2025
1 parent a6d619a commit 81f3c00
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: 'install dependencies'
run: |
sudo apt-get update
sudo apt-get install -y gcc make libcjson-dev
sudo apt-get install -y jq gcc make libcjson-dev
- name: 'build the library'
run: make
Expand Down
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ SRCDIRS = $(shell find src/* -type d)
OBJDIRS = $(patsubst src/%,$(DISTDIR)/%,$(SRCDIRS))

# compiler flags
CFLAGS = -O3 -march=native -fstack-protector-strong -fcf-protection=full -fstack-clash-protection
INCLUDE = -I./inc
LIBS = -lpthread
CFLAGS = -O3 -march=native -fstack-protector-strong -fcf-protection=full -fstack-clash-protection
CFLAGS += -z noexecstack # used get rid of 'missing .note.GNU-stack section' warning
INCLUDE = -I./inc
LIBS = -lpthread

# options
CTORM_DEBUG = 0
Expand Down
2 changes: 1 addition & 1 deletion example/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WARN: you should run the binaries with LD_LIBRARY_PATH=../dist
# WARN: you should run the example binaries with LD_LIBRARY_PATH=../dist

CC = gcc
INCD = ../inc
Expand Down
2 changes: 1 addition & 1 deletion scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function run_example(){
if [ ! -z "${index}" ]; then
index="$((index-1))"

if [ ! "${index}" -lt "${#examples[@]}" ]; then
if [ ! "${index}" -lt "${#examples[@]}" ] || [ "${index}" -lt 0 ]; then
echo "invalid example number: ${1}"
exit 1
fi
Expand Down

0 comments on commit 81f3c00

Please sign in to comment.