Skip to content

Commit

Permalink
ci: fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
lovetodream authored Apr 22, 2024
1 parent a397795 commit 10660a1
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 10660a1

Please sign in to comment.