-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1014 Bytes
/
Copy pathswift.yml
File metadata and controls
38 lines (38 loc) · 1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: CI
on:
pull_request:
workflow_dispatch:
jobs:
# main:
# name: Build & Test (Swift v${{ matrix.swift }} on ${{ matrix.os }})
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ubuntu-latest]
# swift: ["5"]
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: "Use Swift v${{ matrix.swift }}"
# uses: swift-actions/setup-swift@v2
# with:
# swift-version: ${{ matrix.swift }}
# - name: Display Swift version
# run: swift --version
# - name: Build
# run: swift build
# Testing only supported with Swift >= 6.0
testing:
name: Build & Test (beta)
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Swift v6.0
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "16.0"
- name: Build
run: swift build
- name: Test
run: swift test --enable-swift-testing