Skip to content

Commit 6b625fb

Browse files
committed
ci: use Swift container for swift-format to fix GPG issues
1 parent 8f48b91 commit 6b625fb

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/swift-format.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,12 @@ jobs:
1313
swift_format:
1414
name: swift-format
1515
runs-on: ubuntu-latest
16+
container: swift:6.0
1617
permissions:
1718
contents: write
1819
steps:
1920
- uses: actions/checkout@v5
2021

21-
- name: Setup Swift
22-
uses: swift-actions/setup-swift@v2
23-
with:
24-
swift-version: '6.0'
25-
2622
- name: Cache swift-format
2723
id: cache-swift-format
2824
uses: actions/cache@v4
@@ -36,7 +32,7 @@ jobs:
3632
git clone --depth 1 --branch main https://github.com/apple/swift-format.git
3733
cd swift-format
3834
swift build -c release
39-
sudo cp .build/release/swift-format /usr/local/bin/
35+
cp .build/release/swift-format /usr/local/bin/
4036
cd ..
4137
rm -rf swift-format
4238

0 commit comments

Comments
 (0)