Skip to content

Commit 7081ebd

Browse files
authored
Add Windows CI & CI badges, unify CI on 5.10 (#65)
* Add Windows CI workflow * Update Linux CI to user Swift 5.10 * Update macOS CI to use Swift 5.10 * Add Windows CI using Swift 5.10 * Add CI badges to README.md * Fix Windows Swift image branch & tag * Remove unused import breaking Windows build
1 parent 15f8de8 commit 7081ebd

File tree

5 files changed

+50
-5
lines changed

5 files changed

+50
-5
lines changed

.github/workflows/swift-linux.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
11+
container:
12+
image: swift:5.10.0
13+
1114
steps:
1215
- name: Swift version
1316
run: swift --version

.github/workflows/swift-macos.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ on:
77

88
jobs:
99
build:
10-
runs-on: macos-latest
10+
runs-on: macos-15
1111
steps:
12-
- name: List Xcode versions
13-
run: ls /Applications | grep Xcode
12+
- name: Setup Xcode version
13+
uses: maxim-lobanov/[email protected]
14+
with:
15+
xcode-version: '15.4' # contains Swift 5.10.0
1416

1517
- name: Swift version
1618
run: swift --version
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build Windows
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
defaults:
9+
run: # Use powershell because bash is not supported: https://github.com/compnerd/gha-setup-swift/issues/18#issuecomment-1705524890
10+
shell: pwsh
11+
12+
jobs:
13+
build:
14+
runs-on: windows-2019 # Windows SDK lower than 10.0.26100 is needed until https://github.com/swiftlang/swift/pull/79751 released!
15+
steps:
16+
17+
- name: Setup VS Dev Environment
18+
uses: seanmiddleditch/gha-setup-vsdevenv@v5
19+
20+
- name: Setup
21+
uses: compnerd/[email protected]
22+
with:
23+
branch: swift-5.10-release
24+
tag: 5.10-RELEASE
25+
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
29+
- name: Swift version
30+
run: swift --version
31+
32+
- name: Build
33+
run: |
34+
Set-StrictMode -Version Latest
35+
$ErrorActionPreference = "Stop"
36+
$PSNativeCommandUseErrorActionPreference = $true
37+
38+
swift build --product swift-bundler

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44

55
<p align="center">
66
<a href="https://swiftpackageindex.com/stackotter/swift-bundler"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fstackotter%2Fswift-bundler%2Fbadge%3Ftype%3Dswift-versions"></a>
7-
<a href="https://discord.gg/6mUFu3KtAn"><img src="https://img.shields.io/discord/949626773295988746?color=6A7EC2&label=discord&logo=discord&logoColor=ffffff"></a>
7+
<a href="https://github.com/stackotter/swift-bundler/actions/workflows/swift-macos.yml" alt="Build macOS"><img src="https://github.com/stackotter/swift-bundler/actions/workflows/swift-macos.yml/badge.svg"></a>
8+
<a href="https://github.com/stackotter/swift-bundler/actions/workflows/swift-linux.yml" alt="Build Linux"><img src="https://github.com/stackotter/swift-bundler/actions/workflows/swift-linux.yml/badge.svg"></a>
9+
<a href="https://github.com/stackotter/swift-bundler/actions/workflows/swift-windows.yml" alt="Build Linux"><img src="https://github.com/stackotter/swift-bundler/actions/workflows/swift-windows.yml/badge.svg"></a>
10+
<a href="https://discord.gg/6mUFu3KtAn"><img src="https://img.shields.io/discord/949626773295988746?color=6A7EC2&label=discord&logo=discord&logoColor=ffffff"></a>
811
</p>
912

1013
<p align="center">

Sources/swift-bundler/Bundler/ProjectBuilder.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import AsyncCollections
22
import Foundation
33
import SwiftBundlerBuilders
4-
import SystemPackage
54
import Version
65

76
enum ProjectBuilder {

0 commit comments

Comments
 (0)