Corrected directory name
Build and Bundle / macOS (push) Failing after 10m7s
Build and Bundle / Ubuntu (push) Failing after 15m32s
Build and Bundle / Windows (push) Failing after 31m49s

This commit is contained in:
2026-08-26 11:46:35 -07:00
parent b20745cd55
commit a5e8a0dccf
+93
View File
@@ -0,0 +1,93 @@
name: Build and Bundle
on:
push:
workflow_dispatch:
jobs:
macos:
name: macOS
runs-on: macos-26
defaults:
run:
working-directory: ./Swift
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 "$BIN_PATH/libLogic.dylib" artifacts/
cp "$BIN_PATH/libSwiftGodot.dylib" artifacts/
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: Logic-macOS
path: artifacts/*
windows:
name: Windows
runs-on: windows-11
defaults:
run:
working-directory: ./Swift
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/libLogic.dll" -Destination artifacts/
- name: Bundle DLLs
uses: https://git.omgitsalexl.me/omgitsalexl/windows-collect-dependencies@v1.0.3
with:
executable: artifacts/libLogic.dll
output: artifacts/
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: Logic-windows
path: artifacts/*
ubuntu:
name: Ubuntu
runs-on: ubuntu-24.04
defaults:
run:
working-directory: ./Swift
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/libLogic.so" artifacts/
- name: Bundle Shared Libraries
uses: https://git.omgitsalexl.me/omgitsalexl/linux-collect-dependencies@v1.0.1
with:
executable: artifacts/libLogic.so
output: artifacts/
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: Logic-ubuntu
path: artifacts/*