Skip to content

Commit 8adf41d

Browse files
committed
2 parents 8bf53e4 + d0fb1a7 commit 8adf41d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,19 @@ jobs:
9494
strategy:
9595
matrix:
9696
toolchain: ["beta"]
97-
example: ["run-app", "run-app-with-args", "call-managed-function", "passing-parameters", "return-string-from-managed"]
97+
example: ["run-app", "run-app-with-args", "call-native-function", "call-managed-function", "passing-parameters", "return-string-from-managed"]
9898
steps:
9999
- uses: actions/checkout@v6
100100
- name: Install latest ${{ matrix.toolchain }}
101101
uses: dtolnay/rust-toolchain@master
102102
with:
103-
toolchain: ${{ matrix.toolchain }}
103+
toolchain: ${{ matrix.example == 'call-native-function' && 'nightly' || matrix.toolchain }}
104104
- name: Build .NET project for '${{ matrix.example }}'
105105
working-directory: ./examples/${{ matrix.example }}/ExampleProject
106106
run: dotnet build
107107
- name: Run example '${{ matrix.example }}'
108+
env:
109+
RUSTFLAGS: ${{ matrix.example == 'call-native-function' && '-Z export-executable-symbols' || '' }}
108110
run: cargo run --example ${{ matrix.example }}
109111

110112
documentation:

0 commit comments

Comments
 (0)