-
Notifications
You must be signed in to change notification settings - Fork 10
/
test.sh
39 lines (32 loc) · 1.18 KB
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
set -e
echo ""
PREFIX=riscv32-unknown-elf
RELEASE=rv32i-4.0.0
ARCHIVE=riscv32-unknown-elf.gcc-12.1.0
echo "Checking $RELEASE : $ARCHIVE/$PREFIX..."
wget https://github.com/stnolting/riscv-gcc-prebuilt/releases/download/$RELEASE/$ARCHIVE.tar.gz
ls -al
mkdir $GITHUB_WORKSPACE/$ARCHIVE.tmp
tar -xzf $ARCHIVE.tar.gz -C $GITHUB_WORKSPACE/$ARCHIVE.tmp/
$GITHUB_WORKSPACE/$ARCHIVE.tmp/bin/$PREFIX-gcc -v
echo ""
PREFIX=riscv32-unknown-elf
RELEASE=rv32i-131023
ARCHIVE=riscv32-unknown-elf.gcc-13.2.0
echo "Checking $RELEASE : $ARCHIVE/$PREFIX..."
wget https://github.com/stnolting/riscv-gcc-prebuilt/releases/download/$RELEASE/$ARCHIVE.tar.gz
ls -al
mkdir $GITHUB_WORKSPACE/$ARCHIVE.tmp
tar -xzf $ARCHIVE.tar.gz -C $GITHUB_WORKSPACE/$ARCHIVE.tmp/
$GITHUB_WORKSPACE/$ARCHIVE.tmp/bin/$PREFIX-gcc -v
echo ""
PREFIX=riscv32-unknown-elf
RELEASE=rv32e-231223
ARCHIVE=riscv32-unknown-elf.gcc-rve-13.2.0
echo "Checking $RELEASE : $ARCHIVE/$PREFIX..."
wget https://github.com/stnolting/riscv-gcc-prebuilt/releases/download/$RELEASE/$ARCHIVE.tar.gz
ls -al
mkdir $GITHUB_WORKSPACE/$ARCHIVE.tmp
tar -xzf $ARCHIVE.tar.gz -C $GITHUB_WORKSPACE/$ARCHIVE.tmp/
$GITHUB_WORKSPACE/$ARCHIVE.tmp/bin/$PREFIX-gcc -v