Skip to content

Commit 922b55b

Browse files
committed
ci: move fix to docker side
1 parent 8332d2c commit 922b55b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/pr.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,7 @@ jobs:
109109
key: rust-targets
110110

111111
- name: Build WASM
112-
run: |
113-
git config --global --add safe.directory /workspace
114-
bun run build:wasm && bun run package
112+
run: bun run build:wasm && bun run package
115113

116114
- name: Upload WASM module to GitHub
117115
uses: actions/upload-artifact@v4

scripts/cargo-msfs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ await Promise.all(
110110
-w /workspace${relativeWorkdDir} \
111111
-e CARGO_TARGET_DIR=/workspace/targets/${simVersion} \
112112
${IMAGE_NAME} \
113-
bash -c "cargo-msfs build msfs${simVersion} -i ./src/wasm -o ./${relativeSimDir}/msfs_navigation_data_interface.wasm \
113+
bash -c "git config --global --add safe.directory /workspace && cargo-msfs build msfs${simVersion} -i ./src/wasm -o ./${relativeSimDir}/msfs_navigation_data_interface.wasm \
114114
1> >(sed \"s/^/[${color}${simVersion}\\x1b[0m]/\") \
115115
2> >(sed \"s/^/[${color}${simVersion}\\x1b[0m]/\" >&2)"`.catch((err: { exitCode?: number; stderr?: Buffer }) => {
116116
console.error(`[-] Error building for ${simVersion}: ${err.exitCode} ${err.stderr?.toString()}`);

0 commit comments

Comments
 (0)