Skip to content

Commit 6fc09dc

Browse files
authored
Update makefile.yml
1 parent a5b623b commit 6fc09dc

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/makefile.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
branches:
1010
- main
1111
- develop
12-
workflow_dispatch: # Allows manual triggering
12+
workflow_dispatch:
1313

1414
jobs:
1515
build:
@@ -18,8 +18,8 @@ jobs:
1818

1919
strategy:
2020
matrix:
21-
os: [ubuntu-latest, windows-latest, macos-latest] # Run on all major OSes
22-
build_mode: [debug, release] # Build both Debug and Release
21+
os: [ubuntu-latest, windows-latest, macos-latest]
22+
build_mode: [debug, release]
2323

2424
env:
2525
BUILD_MODE: ${{ matrix.build_mode }}
@@ -65,6 +65,17 @@ jobs:
6565
run: |
6666
make copy_rust_lib BUILD_MODE=${{ matrix.build_mode }}
6767
68+
- name: Set Library Path (Linux/macOS)
69+
if: runner.os != 'Windows'
70+
run: |
71+
echo "LD_LIBRARY_PATH=$(pwd)/CSharpDemo/bin/${{ matrix.build_mode }}/net9.0" >> $GITHUB_ENV
72+
echo "DYLD_LIBRARY_PATH=$(pwd)/CSharpDemo/bin/${{ matrix.build_mode }}/net9.0" >> $GITHUB_ENV
73+
74+
- name: Set Library Path (Windows)
75+
if: runner.os == 'Windows'
76+
run: |
77+
echo "PATH=$(pwd)\CSharpDemo\bin\${{ matrix.build_mode }}\net9.0;%PATH%" >> $GITHUB_ENV
78+
6879
- name: Run C# Application (${{ matrix.build_mode }}) (Linux & macOS)
6980
if: matrix.os != 'windows-latest'
7081
run: |

0 commit comments

Comments
 (0)