-
-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arm: do not use CI to try to build arm and create some manual scripts…
… files
- Loading branch information
Showing
8 changed files
with
71 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# This directory is used for cache of deps of dockerfiles used for | ||
# Some custom builds done manually | ||
* | ||
!.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## ARM Prebuilt Binaries | ||
|
||
Those are scripts to create prebuilt binaries for the addon on ARM architecture. | ||
|
||
They were built to be run from Windows (hence the powershell script). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM jonathancardoso/ci-arm32v7 | ||
|
||
# docker run --rm --name node-libcurl-arm32v7 -it -v E:\\jc\\node-libcurl:/home/circleci/node-libcurl -v /home/circleci/node-libcurl/node_modules/ -v E:\\jc\\.cache\\electron:/home/circleci/.cache/electron -v E:\\jc\\node-libcurl\\debug\\image-deps-arm32v7:/home/circleci/deps/ node-libcurl-arm32v7 | ||
# cd ~/node-libcurl && sudo chown circleci:circleci -R ./ && sudo chown circleci:circleci -R ~/.cache | ||
# PUBLISH_BINARY=false GIT_TAG="" GIT_COMMIT="" TARGET_ARCH="armv7" ./scripts/ci/build.sh | ||
ENTRYPOINT [ "/bin/bash" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
param ( | ||
[ValidateSet('armv7')][string]$arch = "armv7", | ||
[string]$libcurl = "7.64.1", | ||
[string]$token = $env:GITHUB_RELEASE_TOKEN, | ||
[string]$node = "10" | ||
) | ||
|
||
$currentDir = Get-Location | ||
$imageName = "node-libcurl-$arch" | ||
|
||
Write-Host $arch | ||
Write-Host $token | ||
Write-Host $currentDir | ||
Write-Host $imageName | ||
|
||
docker build -t $imageName -f "${currentDir}/scripts/arm/${arch}.dockerfile" . | ||
|
||
docker run --rm --name $imageName -it ` | ||
-v "${currentDir}:/home/circleci/node-libcurl/" ` | ||
-v "/home/circleci/node-libcurl/node_modules/" ` | ||
-v "/home/circleci/node-libcurl/debug/" ` | ||
-v "${currentDir}/cache/image-deps-${arch}:/home/circleci/deps/" ` | ||
-e PUBLISH_BINARY=true ` | ||
-e TARGET_ARCH=$arch ` | ||
-e LIBCURL_RELEASE=$libcurl ` | ||
-e LATEST_LIBCURL_RELEASE=$libcurl ` | ||
--entrypoint "/bin/bash" ` | ||
$imageName ` | ||
-c "source ~/.bashrc && nvm use $node && ~/node-libcurl/scripts/arm/publish-binary.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
cd ~/node-libcurl | ||
|
||
user=$(whoami) | ||
|
||
# fix permissions for directories created when mounting volumes from Windows | ||
sudo chown $user:$user -R ./ && sudo chown $user:$user -R ~/.cache | ||
|
||
./scripts/ci/build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters