Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Windows CI & CI badges #65

Merged
merged 8 commits into from
Mar 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/swift-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
jobs:
build:
runs-on: ubuntu-latest
container:
image: swift:5.10.0

steps:
- name: Swift version
run: swift --version
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/swift-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ on:

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

- name: Swift version
run: swift --version
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/swift-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build Windows

on:
push:
pull_request:
workflow_dispatch:

defaults:
run: # Use powershell because bash is not supported: https://github.com/compnerd/gha-setup-swift/issues/18#issuecomment-1705524890
shell: pwsh

jobs:
build:
runs-on: windows-2019 # Windows SDK lower than 10.0.26100 is needed until https://github.com/swiftlang/swift/pull/79751 released!
steps:

- name: Setup VS Dev Environment
uses: seanmiddleditch/gha-setup-vsdevenv@v5

- name: Setup
uses: compnerd/[email protected]
with:
branch: swift-5.10-release
tag: 5.10-RELEASE

- name: Checkout
uses: actions/checkout@v4

- name: Swift version
run: swift --version

- name: Build
run: |
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
$PSNativeCommandUseErrorActionPreference = $true

swift build --product swift-bundler
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@

<p align="center">
<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>
<a href="https://discord.gg/6mUFu3KtAn"><img src="https://img.shields.io/discord/949626773295988746?color=6A7EC2&label=discord&logo=discord&logoColor=ffffff"></a>
<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>
<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>
<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>
<a href="https://discord.gg/6mUFu3KtAn"><img src="https://img.shields.io/discord/949626773295988746?color=6A7EC2&label=discord&logo=discord&logoColor=ffffff"></a>
</p>

<p align="center">
Expand Down
1 change: 0 additions & 1 deletion Sources/swift-bundler/Bundler/ProjectBuilder.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import AsyncCollections
import Foundation
import SwiftBundlerBuilders
import SystemPackage
import Version

enum ProjectBuilder {
Expand Down
Loading