-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Cirrus CI to build the toolchain
- Loading branch information
1 parent
19c0d33
commit 1c76bad
Showing
6 changed files
with
76 additions
and
42 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
Submodule cirrus-ci-tools
added at
b6c387
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,28 @@ | ||
build_toolchain_task: | ||
timeout_in: 120m | ||
|
||
compute_engine_instance: | ||
platform: linux | ||
cpu: 4 | ||
memory: 8G | ||
image_project: cirrus-images | ||
matrix: | ||
- name: 'Linux x86_64' | ||
image: family/docker-builder | ||
- name: 'Linux aarch64' | ||
image: family/docker-builder-arm64 | ||
architecture: arm64 | ||
|
||
clone_script: | | ||
git clone -b "${CIRRUS_BRANCH}" https://github.com/adonis0147/devel-env | ||
script: | | ||
cd devel-env/toolchain | ||
docker build -t toolchain . | ||
docker run --rm --mount type=bind,source="$(pwd)",target=/output toolchain | ||
mkdir -p "${CIRRUS_WORKING_DIR}/output" | ||
mv "install_toolchain.sh" "${CIRRUS_WORKING_DIR}/output/install_toolchain_$(uname -m).sh" | ||
artifacts: | ||
path: output/install_toolchain_*.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 |
---|---|---|
@@ -1,15 +1,18 @@ | ||
## Install GCC Toolchain | ||
```shell | ||
bash install_toolchain.sh PATH | ||
# For x86_64 platform | ||
bash install_toolchain_x86_64.sh PATH | ||
|
||
# For aarch64 platform | ||
bash install_toolchain_aarch64.sh PATH | ||
``` | ||
|
||
## MD5 Checksums | ||
``` | ||
MD5_CHECKSUMS install_toolchain.sh | ||
<MD5SUM> | ||
``` | ||
|
||
## SHA256 Checksums | ||
``` | ||
SHA256_CHECKSUMS install_toolchain.sh | ||
<SHA256SUM> | ||
``` | ||
|
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,3 @@ | ||
[submodule ".github/cirrus-ci-tools"] | ||
path = .github/cirrus-ci-tools | ||
url = https://github.com/adonis0147/cirrus-ci-tools |