Skip to content

Commit 562483d

Browse files
committed
Skip Risc-V toolchain builds for speed, as it won't update frequently
1 parent a20c173 commit 562483d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
with:
9797
ssh-private-key: ${{ secrets.SSH_KEY }}
9898
- name: Build
99-
run: ./build_linux.sh
99+
run: SKIP_RISCV=1 ./build_linux.sh
100100
- name: Upload Artifact
101101
uses: actions/upload-artifact@v4
102102
with:

build_linux.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ done < <(echo "$repos")
4040

4141

4242
cd $builddir
43-
if [[ $(uname -m) == 'aarch64' ]]; then
43+
if [[ "$SKIP_RISCV" != 1 ]] && [[ $(uname -m) == 'aarch64' ]]; then
4444
# Only need this for pi, and it takes ages to build
4545
../packages/linux/riscv/build-riscv-gcc.sh
4646
fi
@@ -88,7 +88,7 @@ pushd "$builddir/openocd-install/usr/local/bin"
8888
tar -a -cf "$topd/bin/$filename" * -C "../share/openocd" "scripts"
8989
popd
9090

91-
if [[ $(uname -m) == 'aarch64' ]]; then
91+
if [[ "$SKIP_RISCV" != 1 ]] && [[ $(uname -m) == 'aarch64' ]]; then
9292
# Package riscv toolchain separately as well
9393
version="14"
9494
echo "Risc-V Toolchain version $version"

0 commit comments

Comments
 (0)