File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed
.github/actions/setup_toolchain Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 28
28
- name : Get Toolchain URL
29
29
if : >-
30
30
inputs.toolchain != 'arm-gcc' &&
31
- inputs.toolchain != 'arm-iar' &&
32
31
inputs.toolchain != 'esp-idf'
33
32
id : set-toolchain-url
34
33
run : |
40
39
- name : Download Toolchain
41
40
if : >-
42
41
inputs.toolchain != 'arm-gcc' &&
43
- inputs.toolchain != 'arm-iar' &&
44
42
inputs.toolchain != 'esp-idf'
45
43
uses : ./.github/actions/setup_toolchain/download
46
44
with :
Original file line number Diff line number Diff line change @@ -23,17 +23,24 @@ runs:
23
23
if : steps.cache-toolchain-download.outputs.cache-hit != 'true'
24
24
run : |
25
25
mkdir -p ~/cache/${{ inputs.toolchain }}
26
- wget --progress=dot:giga ${{ inputs.toolchain_url }} -O toolchain.tar.gz
26
+
27
27
if [[ ${{ inputs.toolchain }} == rx-gcc ]]; then
28
- mv toolchain.tar.gz toolchain.run
28
+ wget --progress=dot:giga ${{ inputs.toolchain_url }} -O toolchain.run
29
29
chmod +x toolchain.run
30
30
./toolchain.run -p ~/cache/${{ inputs.toolchain }}/gnurx -y
31
+ elif [[ ${{ inputs.toolchain }} == arm-iar ]]; then
32
+ wget --progress=dot:giga ${{ inputs.toolchain_url }} -O ~/cache/${{ inputs.toolchain }}/cxarm.deb
31
33
else
34
+ wget --progress=dot:giga ${{ inputs.toolchain_url }} -O toolchain.tar.gz
32
35
tar -C ~/cache/${{ inputs.toolchain }} -xaf toolchain.tar.gz
33
36
fi
34
37
shell : bash
35
38
36
- - name : Set Toolchain Path
39
+ - name : Setup Toolchain
37
40
run : |
38
- echo >> $GITHUB_PATH `echo ~/cache/${{ inputs.toolchain }}/*/bin`
41
+ if [[ ${{ inputs.toolchain }} == arm-iar ]]; then
42
+ sudo apt-get install -y ~/cache/${{ inputs.toolchain }}/cxarm.deb
43
+ else
44
+ echo >> $GITHUB_PATH `echo ~/cache/${{ inputs.toolchain }}/*/bin`
45
+ fi
39
46
shell : bash
You can’t perform that action at this time.
0 commit comments