From 7c0d8734f37018e8f998f191a5872ca99df2df55 Mon Sep 17 00:00:00 2001 From: Rauhul Varma Date: Fri, 6 Dec 2024 17:49:23 -0800 Subject: [PATCH] wi --- .github/workflows/build-pico-sdk.yml | 8 +++----- .github/workflows/lint.yml | 15 +++++++++------ 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-pico-sdk.yml b/.github/workflows/build-pico-sdk.yml index f228138..6e15e98 100644 --- a/.github/workflows/build-pico-sdk.yml +++ b/.github/workflows/build-pico-sdk.yml @@ -26,10 +26,8 @@ jobs: - name: Checkout repo uses: actions/checkout@v4 - - name: Update system packages - run: | - apt-get -y update - apt-get -y install curl ninja-build python3 + - name: Install apt dependencies + run: apt-get -qq update && apt-get -qq -y install curl ninja-build python3 - name: Install CMake 3.30.2 run: | @@ -37,8 +35,8 @@ jobs: curl -L https://github.com/Kitware/CMake/releases/download/v3.30.2/cmake-3.30.2-linux-$ARCH.tar.gz -O tar xzf cmake-3.30.2-linux-$ARCH.tar.gz export PATH="`pwd`/cmake-3.30.2-linux-$ARCH/bin:$PATH" - cmake --version echo "PATH=$PATH" >> $GITHUB_ENV + cmake --version - name: Clone Pico SDK run: | diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8bf2539..dda1e3f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,11 +13,14 @@ jobs: container: swift:6.0-jammy steps: - - uses: actions/checkout@v4 + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Install apt dependencies + run: apt-get -qq update && apt-get -qq -y install curl + - name: Get common swift-format config - run: | - curl https://github.com/apple/swift-mmio/blob/main/SupportingFiles/Tools/swift-format/.swift-format -o .swift-format - - name: Lint - run: | - swift-format lint --recursive --strict . + run: curl -L https://github.com/apple/swift-mmio/blob/main/SupportingFiles/Tools/swift-format/.swift-format -O + - name: Lint + run: swift-format lint --recursive --strict .