Skip to content

Commit 3b4a7e0

Browse files
committed
Remove RAYFORCE_LOCAL - build uses src/rayforce directly
1 parent 019073a commit 3b4a7e0

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,7 @@ jobs:
5454
grep -n "return.*(obj_p" src/rayforce/math.c | head -5
5555
5656
- name: Build WASM
57-
run: |
58-
# Set RAYFORCE_LOCAL to the checked out source
59-
export RAYFORCE_LOCAL=$GITHUB_WORKSPACE/rayforce-src
60-
make wasm
57+
run: make wasm
6158

6259
- name: Prepare deployment
6360
run: |

Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
# ============================================================================
1010

1111
RAYFORCE_GITHUB = https://github.com/RayforceDB/rayforce.git
12-
RAYFORCE_LOCAL ?= ../rayforce
1312
EXEC_DIR = $(shell pwd)
1413
BUILD_DIR = $(EXEC_DIR)/build
1514
DIST_DIR = $(EXEC_DIR)/dist
@@ -159,11 +158,11 @@ pull:
159158
@cp -r $(BUILD_DIR)/rayforce-c/core/* $(RAYFORCE_SRC)/
160159
@echo "✅ Sources pulled successfully"
161160

162-
# Copy rayforce sources from local directory
161+
# Copy rayforce sources from local directory (usage: make sync or RAYFORCE_SRC_DIR=path make sync)
163162
sync:
164163
@echo "🔄 Syncing from local rayforce directory..."
165164
@mkdir -p $(RAYFORCE_SRC)
166-
@cp -r $(RAYFORCE_LOCAL)/core/* $(RAYFORCE_SRC)/
165+
@cp -r $${RAYFORCE_SRC_DIR:-../rayforce}/core/* $(RAYFORCE_SRC)/
167166
@echo "✅ Sources synced successfully"
168167

169168
# ============================================================================
@@ -224,7 +223,7 @@ wasm-standalone: CFLAGS = $(WASM_CFLAGS)
224223
wasm-standalone: check-emcc $(DIST_DIR) $(BUILD_DIR)/lib$(TARGET).a $(WASM_MAIN_OBJ)
225224
@mkdir -p $(BUILD_DIR)/examples
226225
@cp -r $(BUILD_DIR)/rayforce-c/examples/* $(BUILD_DIR)/examples/ 2>/dev/null || \
227-
cp -r $(RAYFORCE_LOCAL)/examples/* $(BUILD_DIR)/examples/ 2>/dev/null || true
226+
cp -r $${RAYFORCE_SRC_DIR:-../rayforce}/examples/* $(BUILD_DIR)/examples/ 2>/dev/null || true
228227
$(CC) -I$(SRC_DIR) $(CFLAGS) -o $(DIST_DIR)/$(TARGET)-standalone.js \
229228
$(ALL_OBJS) \
230229
-s "EXPORTED_FUNCTIONS=$(EXPORTED_FUNCTIONS)" \

0 commit comments

Comments
 (0)