Skip to content

Commit

Permalink
update toolchain to gcc14
Browse files Browse the repository at this point in the history
  • Loading branch information
gtxaspec committed Jun 24, 2024
1 parent d0499fd commit 5256228
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 25 deletions.
28 changes: 4 additions & 24 deletions .github/workflows/pru.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,38 +44,18 @@ jobs:
uses: actions/checkout@v4
with:
submodules: 'true'
fetch-depth: "1"

- name: Setup cache directories
run: |
mkdir -p /tmp/ccache
ln -s /tmp/ccache ${HOME}/.ccache
- name: Setup ccache
uses: actions/cache@v4
if: always()
with:
path: /tmp/ccache
key: ${{ runner.os }}-ccache-${{ github.sha }}
restore-keys: |
${{ runner.os }}-ccache-
- name: Update system sources
run: sudo apt-get update

- name: Install build dependencies
run: |
sudo apt-get install -y --no-install-recommends --no-install-suggests build-essential bc bison cpio curl file flex git libncurses-dev make rsync unzip wget whiptail gcc lzop u-boot-tools ca-certificates ccache
- name: Download toolchain
run: |
wget https://github.com/themactep/thingino-firmware/releases/download/toolchain/thingino-toolchain_xburst1_musl_gcc13-linux-mipsel.tar.gz
tar -xf thingino-toolchain_xburst1_musl_gcc13-linux-mipsel.tar.gz
wget https://github.com/themactep/thingino-firmware/releases/download/toolchain/thingino-toolchain_xburst1_musl_gcc14-linux-mipsel.tar.gz
tar -xf thingino-toolchain_xburst1_musl_gcc14-linux-mipsel.tar.gz
cd mipsel-thingino-linux-musl_sdk-buildroot; ./relocate-sdk.sh
cd ../
- name: Build deps for target
run: |
PRUDYNT_CROSS="ccache $TOOLCHAIN_MUSL" ./build.sh deps ${{ matrix.target }} ${{ matrix.build_type == 'static' && '-static' || '' }}
PRUDYNT_CROSS="$TOOLCHAIN_MUSL" ./build.sh deps ${{ matrix.target }} ${{ matrix.build_type == 'static' && '-static' || '' }}
- name: Build prudynt for target
run: |
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -e

PRUDYNT_CROSS="ccache mipsel-linux-"
PRUDYNT_CROSS="${PRUDYNT_CROSS:-mipsel-linux-}"
TOP=$(pwd)

prudynt(){
Expand Down

0 comments on commit 5256228

Please sign in to comment.