Kaynağa Gözat

Check binary blobs during CI

Vadim Kaushan 6 yıl önce
ebeveyn
işleme
02c9295587
3 değiştirilmiş dosya ile 8 ekleme ve 0 silme
  1. 1 0
      .travis.yml
  2. 3 0
      ci/install.sh
  3. 4 0
      ci/script.sh

+ 1 - 0
.travis.yml

@@ -28,6 +28,7 @@ before_install: set -e
 
 install:
   - bash ci/install.sh
+  - export PATH="$PATH:$PWD/gcc/bin"
 
 script:
   - bash ci/script.sh

+ 3 - 0
ci/install.sh

@@ -4,6 +4,9 @@ main() {
     if [ $TARGET != x86_64-unknown-linux-gnu ]; then
         rustup target add $TARGET
     fi
+
+    mkdir gcc
+    curl -L https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.1.0-2018.12.0-x86_64-linux-ubuntu14.tar.gz | tar --strip-components=1 -C gcc -xz
 }
 
 main

+ 4 - 0
ci/script.sh

@@ -6,6 +6,10 @@ main() {
     if [ $TRAVIS_RUST_VERSION = nightly ]; then
         cargo check --target $TARGET --features 'const-fn inline-asm'
     fi
+
+    if [ $TARGET = x86_64-unknown-linux-gnu ]; then
+        ./check-blobs.sh
+    fi
 }
 
 main