Skip to content

Commit

Permalink
fix(ci): package proper library in binaries (#127)
Browse files Browse the repository at this point in the history
Fixes #125
  • Loading branch information
fathyb authored Feb 15, 2023
1 parent b4ab3a8 commit 6748a19
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .refloat/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import pkg from "../package.json";

const { version } = JSON.parse(pkg);
const triple = (platform, arch) => `${archs[arch]}-${platforms[platform]}`;
const lib = (platform, arch) =>
`build/${triple(platform, arch)}/release/libcarbonyl.${sharedLib[platform]}`;
const sharedLib = {
macos: "dylib",
linux: "so",
Expand Down Expand Up @@ -33,6 +35,9 @@ export const jobs = ["macos", "linux"].flatMap((platform) => {
command: `
if scripts/runtime-pull.sh ${arch}; then
touch skip-build-${arch}
cp \\
${lib(platform, arch)} \\
build/pre-built/${triple(platform, arch)}
fi
`,
})),
Expand Down

0 comments on commit 6748a19

Please sign in to comment.