Skip to content
This repository was archived by the owner on May 2, 2025. It is now read-only.

Commit 7d41147

Browse files
Merge pull request #3 from SwiftPackageIndex/add-ci
Add ci
2 parents eb5a929 + 13d9365 commit 7d41147

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.github/workflows/ci.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Copyright Dave Verwer, Sven A. Schmidt, and other contributors.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: CI
16+
17+
on:
18+
workflow_dispatch:
19+
push:
20+
branches: [ main ]
21+
pull_request:
22+
branches: [ main ]
23+
24+
jobs:
25+
macOS:
26+
# https://github.com/actions/runner-images
27+
runs-on: macos-15
28+
strategy:
29+
matrix:
30+
xcode:
31+
- '16.3'
32+
steps:
33+
- uses: actions/checkout@v3
34+
- name: Get swift version
35+
run: env DEVELOPER_DIR="/Applications/Xcode_${{ matrix.xcode }}.app" swift --version
36+
- name: Test
37+
run: env DEVELOPER_DIR="/Applications/Xcode_${{ matrix.xcode }}.app" swift test
38+
- name: Build release
39+
run: env DEVELOPER_DIR="/Applications/Xcode_${{ matrix.xcode }}.app" swift build -c release
40+
41+
Linux:
42+
# https://github.com/actions/runner-images
43+
runs-on: ubuntu-latest
44+
strategy:
45+
matrix:
46+
image:
47+
- swift:6.1
48+
container:
49+
image: ${{ matrix.image }}
50+
steps:
51+
- uses: actions/checkout@v3
52+
- name: Get swift version
53+
run: swift --version
54+
- name: Test
55+
run: swift test
56+
- name: Build release
57+
run: swift build -c release

0 commit comments

Comments
 (0)