Skip to content

Commit 66af410

Browse files
committed
CI: Fix arm-none-eabi-gcc installation
1 parent cd0c87a commit 66af410

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/ci.yaml

+7-6
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,9 @@ jobs:
6262
- name: Install arm-none-eabi-gcc and qemu
6363
if: steps.cache-bin.outputs.cache-hit != 'true'
6464
run: |
65-
mkdir -p gcc ~/cache-bin
66-
curl -L https://developer.arm.com/-/media/Files/downloads/gnu-rm/7-2018q2/gcc-arm-none-eabi-7-2018-q2-update-linux.tar.bz2?revision=bc2c96c0-14b5-4bb4-9f18-bceb4050fee7?product=GNU%20Arm%20Embedded%20Toolchain,64-bit,,Linux,7-2018-q2-update \
67-
| tar --strip-components=1 -C gcc -xj
68-
cp gcc/bin/* ~/cache-bin
65+
mkdir -p ~/cache-bin/arm_gcc
66+
curl -L https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.07/gcc-arm-none-eabi-10.3-2021.07-x86_64-linux.tar.bz2 \
67+
| tar --strip-components=1 -C ~/cache-bin/arm_gcc -xj
6968
7069
curl -L https://github.com/japaric/qemu-bin/raw/master/14.04/qemu-system-arm-2.12.0 \
7170
> ~/cache-bin/qemu-system-arm
@@ -77,7 +76,9 @@ jobs:
7776
cp ~/.cargo/bin/* ~/cache-bin
7877
7978
- name: Put new bin directory into path
80-
run: echo "~/cache-bin" >> $GITHUB_PATH
79+
run: |
80+
echo "/home/runner/cache-bin" >> $GITHUB_PATH
81+
echo "/home/runner/cache-bin/arm_gcc/bin" >> $GITHUB_PATH
8182
8283
- name: Test
8384
run: bash ci/script.sh
@@ -102,7 +103,7 @@ jobs:
102103
key: cache-bin
103104

104105
- name: Put new bin directory into path
105-
run: echo "~/cache-bin" >> $GITHUB_PATH
106+
run: echo "$HOME/cache-bin" >> $GITHUB_PATH
106107

107108
- name: Build the book
108109
run: mdbook build

0 commit comments

Comments
 (0)