-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #620 from coldav/colin/fix_aarch64_icd_build
[GITHUB CI] Add support for cross compilation installation for ICD
- Loading branch information
Showing
3 changed files
with
40 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: install ubuntu cross compilation tools | ||
description: install ubuntu tools needed for cross compilation | ||
|
||
inputs: | ||
cross_arch: | ||
description: 'target architecture - default is no cross arch' | ||
default: '' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install ubuntu prerequisites | ||
shell: bash | ||
run: | | ||
if [ "${{ inputs.cross_arch }}" = "x86" ]; then \ | ||
sudo apt-get install --yes gcc-multilib g++-multilib libc6-dev:i386 lib32tinfo-dev; \ | ||
fi | ||
if [ "${{ inputs.cross_arch }}" = "arm" ]; then \ | ||
sudo apt-get install --yes gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf; \ | ||
fi | ||
if [ "${{ inputs.cross_arch }}" = "aarch64" ]; then \ | ||
sudo apt-get install --yes gcc-aarch64-linux-gnu g++-aarch64-linux-gnu; \ | ||
fi | ||
if [ "${{ inputs.cross_arch }}" = "riscv64" ]; then \ | ||
sudo apt-get install --yes gcc-riscv64-linux-gnu g++-riscv64-linux-gnu; \ | ||
fi | ||
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