Skip to content

Commit 55a4fbd

Browse files
Migrate CI to use swiftly-action and update Xcode version
1 parent e25bdca commit 55a4fbd

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,25 @@ on:
66
- main
77
paths-ignore:
88
- 'README.md'
9+
- '**/*.docc/**'
910
- 'CODE_OF_CONDUCT.md'
1011
- '.editorconfig'
1112
- '.spi.yml'
1213
pull_request:
1314
branches:
1415
- main
1516

17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
19+
cancel-in-progress: true
20+
1621
jobs:
1722
test:
1823
name: Test
1924
timeout-minutes: 30
2025
runs-on: macOS-15
2126
env:
22-
DEVELOPER_DIR: /Applications/Xcode_16.1.app
27+
DEVELOPER_DIR: /Applications/Xcode_16.4.app
2328
strategy:
2429
matrix:
2530
destination:
@@ -40,24 +45,15 @@ jobs:
4045
linux_test:
4146
name: Test Linux
4247
runs-on: ubuntu-latest
48+
timeout-minutes: 30
4349
steps:
4450
- name: Checkout
4551
uses: actions/checkout@v4
4652
with:
4753
submodules: recursive
48-
- name: Install dependencies
49-
run: |
50-
sudo apt-get update
51-
sudo apt-get -y install libcurl4-openssl-dev
52-
- name: Install swiftly
53-
run: |
54-
curl -O https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz && \
55-
tar zxf swiftly-$(uname -m).tar.gz && \
56-
./swiftly init --quiet-shell-followup --skip-install && \
57-
. "${SWIFTLY_HOME_DIR:-$HOME/.local/share/swiftly}/env.sh" && \
58-
hash -r
59-
echo "$HOME/.local/share/swiftly/bin" >> $GITHUB_PATH
60-
- name: Install the latest Swift toolchain
61-
run: swiftly install latest
54+
- name: Swiftly
55+
uses: vapor/[email protected]
56+
with:
57+
toolchain: 6.1.0
6258
- name: Test
6359
run: swift test

0 commit comments

Comments
 (0)