From 10660a16d3e63abbd8daae1997eda7ea87c5c175 Mon Sep 17 00:00:00 2001 From: Timo <38291523+lovetodream@users.noreply.github.com> Date: Mon, 22 Apr 2024 17:13:46 +0200 Subject: [PATCH] ci: fix again --- .github/workflows/ci.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a47b82..6173923 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,23 +19,13 @@ jobs: - uses: actions/checkout@v4 - name: Mark repo safe in non-fake global config run: git config --global --add safe.directory "${GITHUB_WORKSPACE}" - - name: Clone swift-format + - name: Setup swift-format run: | cd .. VERSION=510.1.0 git clone https://github.com/apple/swift-format.git cd swift-format git checkout "tags/$VERSION" - cd "${GITHUB_WORKSPACE}" - - name: Cache swift-format - uses: actions/cache@v4 - with: - path: .build - key: ${{ runner.os }}-ci-spm-${{ hashFiles('../swift-format/Package.swift') }} - restore-keys: ${{ runner.os }}-ci-spm- - - name: Setup swift-format - run: | - cd ../swift-format swift build -c release export SWIFTFORMAT_BIN=$(pwd)/.build/release/swift-format" cd "${GITHUB_WORKSPACE}"