Skip to content

Commit caa1de5

Browse files
committed
ISSUE-CELLSGO-210: Try set path on windows env.
1 parent bf79cf5 commit caa1de5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/cellsbuild2run.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,18 @@ jobs:
2222
with:
2323
go-version: '1.20'
2424

25-
- name: Build
25+
- name: Build Aspose.Cells for Go via C++
26+
env:
27+
CGO_ENABLED: 1
28+
CGO_CFLAGS: -I"${{ github.workspace }}"
29+
CGO_CXXFLAGS: -I"${{ github.workspace }}"
30+
CGO_LDFLAGS: -L"${{ github.workspace }}/lib/win_x86_64" -lAspose.Cells.CWrapper
31+
PATH: ${{ github.workspace }}/lib/win_x86_64;${env:PATH}
2632
run: go build -v ./...
2733

2834
- name: Run Example Code.
35+
env:
36+
PATH: ${{ github.workspace }}/lib/win_x86_64;${env:PATH}
2937
run: |
3038
cd samples
3139
go run .

0 commit comments

Comments
 (0)