Skip to content
This repository was archived by the owner on Jan 24, 2022. It is now read-only.

Commit 85c5d77

Browse files
committed
get gcc from a tarball
1 parent 966f8cb commit 85c5d77

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

.travis.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ matrix:
77

88
- env: TARGET=thumbv6m-none-eabi
99
rust: stable
10-
sudo: true
1110
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
1211

1312
- env: TARGET=thumbv6m-none-eabi CC=clang
@@ -16,7 +15,6 @@ matrix:
1615

1716
- env: TARGET=thumbv7m-none-eabi
1817
rust: stable
19-
sudo: true
2018
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
2119

2220
- env: TARGET=thumbv7m-none-eabi CC=clang
@@ -25,7 +23,6 @@ matrix:
2523

2624
- env: TARGET=thumbv7em-none-eabi
2725
rust: stable
28-
sudo: true
2926
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
3027

3128
- env: TARGET=thumbv7em-none-eabi CC=clang
@@ -34,7 +31,6 @@ matrix:
3431

3532
- env: TARGET=thumbv7em-none-eabihf
3633
rust: stable
37-
sudo: true
3834
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
3935

4036
- env: TARGET=thumbv7em-none-eabihf CC=clang
@@ -43,28 +39,25 @@ matrix:
4339

4440
- env: TARGET=thumbv6m-none-eabi
4541
rust: nightly
46-
sudo: true
4742
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
4843

4944
- env: TARGET=thumbv7m-none-eabi
5045
rust: nightly
51-
sudo: true
5246
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
5347

5448
- env: TARGET=thumbv7em-none-eabi
5549
rust: nightly
56-
sudo: true
5750
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
5851

5952
- env: TARGET=thumbv7em-none-eabihf
6053
rust: nightly
61-
sudo: true
6254
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
6355

6456
before_install: set -e
6557

6658
install:
6759
- bash ci/install.sh
60+
- export PATH="$PATH:$PWD/gcc/bin"
6861

6962
script:
7063
- bash ci/script.sh

ci/install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ main() {
55
rustup target add $TARGET
66

77
if [ ${CC:-gcc} = gcc ]; then
8-
sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa -y
9-
sudo apt-get update -q
10-
sudo apt-get install gcc-arm-embedded -y
8+
mkdir gcc
9+
10+
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 | tar --strip-components=1 -C gcc -xj
1111
fi
1212
fi
1313
}

0 commit comments

Comments
 (0)