test: add reproducible FreeCAD golden oracle
This commit is contained in:
10
scripts/build-freecad-native.mjs
Normal file
10
scripts/build-freecad-native.mjs
Normal file
@@ -0,0 +1,10 @@
|
||||
import { execFileSync } from 'node:child_process'
|
||||
import { resolve } from 'node:path'
|
||||
|
||||
const root = resolve(new URL('..', import.meta.url).pathname)
|
||||
const build = resolve(root, '.cache/freecad/build-native')
|
||||
const install = resolve(root, '.cache/freecad/install-native')
|
||||
const jobs = process.env.FREECAD_BUILD_JOBS || '4'
|
||||
execFileSync('cmake', ['--build', build, '--parallel', jobs], { cwd: root, stdio: 'inherit' })
|
||||
execFileSync('cmake', ['--install', build], { cwd: root, stdio: 'inherit' })
|
||||
console.log(`FreeCAD native oracle installed: ${install}`)
|
||||
Reference in New Issue
Block a user