Skip to content

Commit b5a8916

Browse files
padmaiaijjk
andauthoredOct 29, 2021
Chore/rust workflow (#30577)
* Remove prebuilt binaries from repo * Prefer locally built binary * Add binary packages as optionalDependencies * Remove build-native workflow for prebuilt binaries * Remove binaries from checkCompiled job * Change build-native command to default to dev * Add build-native-dev and have tests depend on it * Update contributing * Run ls to make inspect artifact download * Use correct artifact download path * Try using reusable workflows * Resort to duplication for now * Inspect artifact download * Ensure native is copied for PR stats * Copy after ref checkout and log binaries for PR stats * fix typo * copy right before linking/packing * Use fs.copy * fix test for now Co-authored-by: jj@jjsweb.site <jj@jjsweb.site>
1 parent c03e284 commit b5a8916

File tree

16 files changed

+389
-183
lines changed

16 files changed

+389
-183
lines changed
 

‎.github/actions/next-stats-action/src/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ if (!allowedActions.has(actionInfo.actionName) && !actionInfo.isRelease) {
118118
// in case of noisy environment slowing down initial repo build
119119
await exec(buildCommand, false, { timeout: 5 * 60 * 1000 })
120120
}
121+
await fs.copy(
122+
path.join(__dirname, '../native'),
123+
path.join(dir, 'packages/next/native')
124+
)
121125

122126
logger(`Linking packages in ${dir}`)
123127
const pkgPaths = await linkPackages(dir)

‎.github/actions/next-stats-action/src/prepare/repo-setup.js

+4
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ module.exports = (actionInfo) => {
100100
// make sure native binaries are included in local linking
101101
if (pkg === 'next') {
102102
pkgData.files.push('native')
103+
console.log(
104+
'using swc binaries: ',
105+
await exec(`ls ${path.join(path.dirname(pkgDataPath), 'native')}`)
106+
)
103107
}
104108
await fs.writeFile(
105109
pkgDataPath,

‎.github/workflows/build_native.yml

-107
This file was deleted.

0 commit comments

Comments
 (0)