File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7373 -e INCLUDES="$INCLUDES" \
7474 ${{ matrix.docker_image }} \
7575 bash -c '
76- set -e
76+
7777
7878 # --- SETUP ---
7979 # Using @development-tools for full build environment
8585 apt-get update && apt-get install -y build-essential libbash-dev git grep sed coreutils
8686 fi
8787
88+ # --- FIND forkrun_ring.c ---
89+ if [[ -f "ring_loadables/forkrun_ring.c" ]]; then
90+ FR_C_PATH="ring_loadables/forkrun_ring.c"
91+ elif [[ -f "forkrun_ring.c" ]]; then
92+ FR_C_PATH="forkrun_ring.c"
93+ else
94+ FR_C_PATH="$(find ./ -type f -name 'forkrun_ring.c' -print -quit)"
95+ fi
96+
97+ { [[ ${FR_C_PATH} ]] && [[ -f "${FR_C_PATH}" ]]; } || { echo "ERROR: could not find path to forkrun_ring.c...ABORTING!" >&2 ; exit 1; }
98+
8899 # --- VERSION EXTRACTION ---
89100 FR_VERSION="unknown"
90101 if [ -f "ring_loadables/META" ]; then
@@ -114,7 +125,7 @@ jobs:
114125
115126 # 2. Build Full Command Array
116127 declare -a CMD
117- CMD+=(gcc forkrun_ring.c )
128+ CMD+=(gcc "$FR_C_PATH" )
118129 CMD+=($OPT_FLAGS $WARN_FLAGS $LINK_FLAGS $INCLUDES)
119130 CMD+=("${DEFS[@]}")
120131 CMD+=(-shared)
You can’t perform that action at this time.
0 commit comments