Added workflow for building and bundling release
Swift Testing / Ubuntu (push) Failing after 5s
Swift Testing / macOS (push) Failing after 11s
Swift Testing / Windows (push) Canceled after 0s
Swift Testing / Ubuntu (push) Canceled after 35s
Swift Testing / macOS (push) Canceled after 28s
Swift Testing / Windows (push) Canceled after 54s
Swift Testing / Ubuntu (push) Failing after 5s
Swift Testing / macOS (push) Failing after 11s
Swift Testing / Windows (push) Canceled after 0s
Swift Testing / Ubuntu (push) Canceled after 35s
Swift Testing / macOS (push) Canceled after 28s
Swift Testing / Windows (push) Canceled after 54s
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
name: Swift Testing
|
||||
|
||||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
macos:
|
||||
name: macOS
|
||||
runs-on: macos-26
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
BIN_PATH=$(swift build -c release --show-bin-path)
|
||||
mkdir -p artifacts
|
||||
cp "$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: |
|
||||
$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: |
|
||||
BIN_PATH=$(swift build -c release --show-bin-path)
|
||||
mkdir -p artifacts
|
||||
cp "$BIN_PATH/*" artifacts/
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: SwiftRunnerTesting-ubuntu
|
||||
path: artifacts/
|
||||
Reference in New Issue
Block a user