Fixed path errors, making relative to workspace
This commit is contained in:
@@ -45,20 +45,20 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
swift build -c release -Xswiftc -no-verify-emitted-module-interface
|
swift build -c release -Xswiftc -no-verify-emitted-module-interface
|
||||||
$binPath = swift build -c release --show-bin-path
|
$binPath = swift build -c release --show-bin-path
|
||||||
New-Item -ItemType Directory -Path artifacts -Force
|
New-Item -ItemType Directory -Path "${{github.workspace}}/artifacts" -Force
|
||||||
Copy-Item -Path "$binPath/Logic.dll" -Destination artifacts/
|
Copy-Item -Path "$binPath/Logic.dll" -Destination "${{github.workspace}}/artifacts/"
|
||||||
|
|
||||||
- name: Bundle DLLs
|
- name: Bundle DLLs
|
||||||
uses: https://git.omgitsalexl.me/omgitsalexl/windows-collect-dependencies@v1.0.3
|
uses: https://git.omgitsalexl.me/omgitsalexl/windows-collect-dependencies@v1.0.3
|
||||||
with:
|
with:
|
||||||
executable: artifacts/Logic.dll
|
executable: "${{github.workspace}}/artifacts/Logic.dll"
|
||||||
output: artifacts/
|
output: "${{github.workspace}}/artifacts/"
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Logic-windows
|
name: Logic-windows
|
||||||
path: artifacts/*
|
path: "${{github.workspace}}/artifacts/*"
|
||||||
|
|
||||||
ubuntu:
|
ubuntu:
|
||||||
name: Ubuntu
|
name: Ubuntu
|
||||||
@@ -78,16 +78,16 @@ jobs:
|
|||||||
swift build -c release -Xswiftc -no-verify-emitted-module-interface
|
swift build -c release -Xswiftc -no-verify-emitted-module-interface
|
||||||
BIN_PATH=$(swift build -c release --show-bin-path)
|
BIN_PATH=$(swift build -c release --show-bin-path)
|
||||||
mkdir -p artifacts
|
mkdir -p artifacts
|
||||||
cp "$BIN_PATH/libLogic.so" artifacts/
|
cp "$BIN_PATH/libLogic.so" "${{github.workspace}}/artifacts/"
|
||||||
|
|
||||||
- name: Bundle Shared Libraries
|
- name: Bundle Shared Libraries
|
||||||
uses: https://git.omgitsalexl.me/omgitsalexl/linux-collect-dependencies@v1.0.1
|
uses: https://git.omgitsalexl.me/omgitsalexl/linux-collect-dependencies@v1.0.1
|
||||||
with:
|
with:
|
||||||
executable: artifacts/libLogic.so
|
executable: "${{github.workspace}}/artifacts/libLogic.so"
|
||||||
output: artifacts/
|
output: "${{github.workspace}}/artifacts/"
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Logic-ubuntu
|
name: Logic-ubuntu
|
||||||
path: artifacts/*
|
path: "${{github.workspace}}/artifacts/*
|
||||||
|
|||||||
Reference in New Issue
Block a user