Skip to content

Commit

Permalink
[WIP] arm64 linux (#63)
Browse files Browse the repository at this point in the history
Add linux-arm64-gnu to the cargo-messages build
  • Loading branch information
dherman authored Aug 23, 2024
1 parent cf472e6 commit 4230df8
Show file tree
Hide file tree
Showing 4 changed files with 162 additions and 36 deletions.
3 changes: 2 additions & 1 deletion pkgs/cargo-messages/lib/load.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ module.exports = require('@neon-rs/load').proxy({
'darwin-arm64': () => require('@cargo-messages/darwin-arm64'),
'linux-x64-gnu': () => require('@cargo-messages/linux-x64-gnu'),
'linux-arm-gnueabihf': () => require('@cargo-messages/linux-arm-gnueabihf'),
'android-arm-eabi': () => require('@cargo-messages/android-arm-eabi')
'android-arm-eabi': () => require('@cargo-messages/android-arm-eabi'),
'linux-arm64-gnu': () => require('@cargo-messages/linux-arm64-gnu')
});
23 changes: 21 additions & 2 deletions pkgs/cargo-messages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"author": "David Herman <[email protected]>",
"license": "MIT",
"devDependencies": {
"@neon-rs/cli": "^0.1.67"
"@neon-rs/cli": "^0.1.73"
},
"repository": {
"type": "git",
Expand All @@ -60,7 +60,26 @@
"neon": {
"type": "library",
"org": "@cargo-messages",
"platforms": "extended",
"platforms": {
"win32-x64-msvc": "x86_64-pc-windows-msvc",
"darwin-x64": "x86_64-apple-darwin",
"darwin-arm64": "aarch64-apple-darwin",
"linux-x64-gnu": "x86_64-unknown-linux-gnu",
"linux-arm64-gnu": "aarch64-unknown-linux-gnu",
"win32-arm64-msvc": "aarch64-pc-windows-msvc",
"linux-arm-gnueabihf": "armv7-unknown-linux-gnueabihf",
"android-arm-eabi": "armv7-linux-androideabi"
},
"load": "./lib/load.cjs"
},
"optionalDependencies": {
"@cargo-messages/win32-x64-msvc": "0.1.73",
"@cargo-messages/darwin-x64": "0.1.73",
"@cargo-messages/darwin-arm64": "0.1.73",
"@cargo-messages/linux-x64-gnu": "0.1.73",
"@cargo-messages/win32-arm64-msvc": "0.1.73",
"@cargo-messages/linux-arm-gnueabihf": "0.1.73",
"@cargo-messages/android-arm-eabi": "0.1.73",
"@cargo-messages/linux-arm64-gnu": "0.1.73"
}
}
158 changes: 126 additions & 32 deletions pkgs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion test/integration/proxy/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,19 @@ PROXY_PASSWORD=dummycipassword
[email protected]
PROXY_SERVER=http://127.0.0.1:4873/

npx npm-cli-adduser -u ${PROXY_USER} -p ${PROXY_PASSWORD} -e ${PROXY_EMAIL} -r ${PROXY_SERVER}
NPM_AUTH_TOKEN=$(
curl -s \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-X PUT -d@- \
--user ${PROXY_USER}:${PROXY_PASSWORD} \
${PROXY_SERVER}-/user/org.couchdb.user:${PROXY_USER} << EOF | jq -r .token
{"name": "${PROXY_USER}", "password": "${PROXY_PASSWORD}", "type": "user"}
EOF
)

npm config set "${PROXY_SERVER:5}:_authToken" "${NPM_AUTH_TOKEN}"

(cd pkgs/load && npm publish --registry $PROXY_SERVER)
(cd dist/cli && npm publish --registry $PROXY_SERVER)

Expand Down

0 comments on commit 4230df8

Please sign in to comment.