From 65055836fd754647e7b9a51e7ea43f2c01d19eee Mon Sep 17 00:00:00 2001 From: awalol Date: Wed, 29 Apr 2026 19:35:11 +0800 Subject: [PATCH] update ci --- .github/workflows/build.yml | 12 ++---------- .github/workflows/release.yml | 12 ++---------- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a28edb3..58f5950 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,17 +25,9 @@ jobs: sudo apt update sudo apt install -y cmake python3 build-essential gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib ninja-build - - name: Cache Pico SDK - uses: actions/cache@v4 - with: - path: ${{ env.PICO_SDK_PATH }} - key: pico-sdk-${{ runner.os }}-${{ env.PICO_SDK_REF }}-tinyusb-${{ env.TINYUSB_REF }} - - - name: Prepare Pico SDK + - name: Download Pico SDK run: | - if [ ! -d "$PICO_SDK_PATH/.git" ]; then - git clone --depth 1 --branch "$PICO_SDK_REF" https://github.com/raspberrypi/pico-sdk.git "$PICO_SDK_PATH" - fi + git clone --depth 1 --branch "$PICO_SDK_REF" https://github.com/raspberrypi/pico-sdk.git "$PICO_SDK_PATH" git -C "$PICO_SDK_PATH" submodule update --init --recursive - name: Switch TinyUSB to configured tag diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 27ac9dc..597a317 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,17 +30,9 @@ jobs: sudo apt update sudo apt install -y cmake python3 build-essential gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib ninja-build - - name: Cache Pico SDK - uses: actions/cache@v4 - with: - path: ${{ env.PICO_SDK_PATH }} - key: pico-sdk-${{ runner.os }}-${{ env.PICO_SDK_REF }}-tinyusb-${{ env.TINYUSB_REF }} - - - name: Prepare Pico SDK + - name: Download Pico SDK run: | - if [ ! -d "$PICO_SDK_PATH/.git" ]; then - git clone --depth 1 --branch "$PICO_SDK_REF" https://github.com/raspberrypi/pico-sdk.git "$PICO_SDK_PATH" - fi + git clone --depth 1 --branch "$PICO_SDK_REF" https://github.com/raspberrypi/pico-sdk.git "$PICO_SDK_PATH" git -C "$PICO_SDK_PATH" submodule update --init --recursive - name: Switch TinyUSB to configured tag