summaryrefslogtreecommitdiff
path: root/.github/actions/setup_toolchain
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-06-06 16:07:11 +0700
committerhathach <[email protected]>2024-06-06 16:07:11 +0700
commit302445e64fec763cfb488f0400ec3cb95e984409 (patch)
tree71b133e14de5e74c1bcb65c4eb27b2109ebf9be5 /.github/actions/setup_toolchain
parent90deeddf3d371005e4a9244b1abc9cfb9fc1636f (diff)
try to build rx using build_util
Diffstat (limited to '.github/actions/setup_toolchain')
-rw-r--r--.github/actions/setup_toolchain/download/action.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/.github/actions/setup_toolchain/download/action.yml b/.github/actions/setup_toolchain/download/action.yml
index 2af456ef8..38f327ec5 100644
--- a/.github/actions/setup_toolchain/download/action.yml
+++ b/.github/actions/setup_toolchain/download/action.yml
@@ -24,7 +24,13 @@ runs:
run: |
mkdir -p ~/cache/${{ inputs.toolchain }}
wget --progress=dot:giga ${{ inputs.toolchain_url }} -O toolchain.tar.gz
- tar -C ~/cache/${{ inputs.toolchain }} -xaf toolchain.tar.gz
+ if [[ ${{ inputs.toolchain }} == rx-gcc ]]; then
+ mv toolchain.tar.gz toolchain.run
+ chmod +x toolchain.run
+ ./toolchain.run -p ~/cache/${{ inputs.toolchain }} -y
+ else
+ tar -C ~/cache/${{ inputs.toolchain }} -xaf toolchain.tar.gz
+ endif
shell: bash
- name: Set Toolchain Path