-
Notifications
You must be signed in to change notification settings - Fork 79
58 lines (49 loc) · 1.66 KB
/
swift.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
name: Swift
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "16.0"
- name: Build
run: swift build --build-tests --quiet
- name: Run tests (Swift testing)
run: swift test --skip-build --no-parallel --disable-xctest
- name: Run tests (XCTest)
run: swift test --skip-build --no-parallel --disable-swift-testing
build-windows:
runs-on: windows-latest
timeout-minutes: 30
steps:
- name: Swift Install
uses: compnerd/gha-setup-swift@main
with:
branch: swift-6.0.3-release
tag: 6.0.3-RELEASE
- uses: actions/checkout@v4
- name: Build
run: |
swift build --build-tests --quiet
- name: Show Generated Files
if: always()
run: |
dir .build\plugins\outputs\swiftgodot\SwiftGodot\destination\CodeGeneratorPlugin\GeneratedSources
cat .build\plugins\outputs\swiftgodot\SwiftGodot\destination\CodeGeneratorPlugin\GeneratedSources\*.swift
- name: Run tests (Swift testing)
run: swift test --skip-build --no-parallel --disable-xctest
- name: Run tests (XCTest)
run: swift test --skip-build --no-parallel --disable-swift-testing