Compare commits
10
Commits
2e15755fcd
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
860027b46f | ||
|
|
7847a7798d | ||
|
|
7dfb6c00e6 | ||
|
|
c894ce9fcd | ||
|
|
a933f1f8a1 | ||
|
|
d683ded789 | ||
|
|
411c79e8b5 | ||
|
|
8067bdf45d | ||
|
|
da8f81be84 | ||
|
|
a450b51b7b |
@@ -0,0 +1,76 @@
|
||||
name: Build and Bundle
|
||||
|
||||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
macos:
|
||||
name: macOS
|
||||
runs-on: macos-26
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
swift build -c release
|
||||
BIN_PATH=$(swift build -c release --show-bin-path)
|
||||
mkdir -p artifacts
|
||||
cp -r "$BIN_PATH" artifacts/
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: SwiftRunnerTesting-macOS
|
||||
path: artifacts/
|
||||
|
||||
windows:
|
||||
name: Windows
|
||||
runs-on: windows-11
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
swift build -c release
|
||||
$binPath = swift build -c release --show-bin-path
|
||||
New-Item -ItemType Directory -Path artifacts -Force
|
||||
Copy-Item -Path "$binPath" -Destination artifacts\ -Recurse
|
||||
|
||||
- name: Bundle DLLs
|
||||
uses: hylo-lang/swift-windows-dll-bundler@v1
|
||||
with:
|
||||
executable: artifacts/SwiftRunnerTesting.exe
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: SwiftRunnerTesting-windows
|
||||
path: artifacts/
|
||||
|
||||
ubuntu:
|
||||
name: Ubuntu
|
||||
runs-on: ubuntu-24.04
|
||||
container:
|
||||
image: git.omgitsalexl.me/omgitsalexl/ci-swift:6.3.3
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
swift build -c release
|
||||
BIN_PATH=$(swift build -c release --show-bin-path)
|
||||
mkdir -p artifacts
|
||||
cp -r "$BIN_PATH" artifacts/
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: SwiftRunnerTesting-ubuntu
|
||||
path: artifacts/
|
||||
@@ -29,7 +29,9 @@ jobs:
|
||||
|
||||
ubuntu:
|
||||
name: Ubuntu
|
||||
runs-on: ubuntu-24.04:docker://swift:6.3.3
|
||||
runs-on: ubuntu-24.04
|
||||
container:
|
||||
image: git.omgitsalexl.me/omgitsalexl/ci-swift:6.3.3
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
||||
+7
-3
@@ -4,7 +4,11 @@
|
||||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
|
||||
name: "SwiftRunnerTesting",
|
||||
platforms: [
|
||||
.macOS(.v14)
|
||||
],
|
||||
products: [
|
||||
.executable(name: "SwiftRunnerTesting", targets: ["SwiftRunnerTesting"]),
|
||||
],
|
||||
@@ -20,9 +24,9 @@ let package = Package(
|
||||
.testTarget(
|
||||
name: "SwiftRunnerTestingTests",
|
||||
dependencies: [
|
||||
"swift-testing",
|
||||
"SwiftRunnerTesting"
|
||||
]
|
||||
"SwiftRunnerTesting",
|
||||
.product(name: "Testing", package: "swift-testing")
|
||||
],
|
||||
),
|
||||
],
|
||||
swiftLanguageModes: [.v6]
|
||||
|
||||
Reference in New Issue
Block a user