Skip to content

Commit 6fb8442

Browse files
committed
ISSUE-CELLSGO-210: Contunie to try github action on window.
1 parent d16df4b commit 6fb8442

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

.github/workflows/cellsbuild2run.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,17 @@ jobs:
2121
uses: actions/setup-go@v5
2222
with:
2323
go-version: '1.20'
24-
25-
- name: Build Aspose.Cells for Go via C++
26-
env:
27-
PATH: ${{ github.workspace }}/lib/win_x86_64;${env:PATH}
28-
run: |
29-
dir "${{ github.workspace }}/"
30-
echo "PATH: ${env:PATH}"
31-
go build -v ./...
32-
33-
- name: Run Example Code.
24+
- name: Setup MSVC environment
25+
uses: ilammy/msvc-dev-cmd@v1
26+
- name: Run Example Code
3427
env:
35-
PATH: ${{ github.workspace }}/lib/win_x86_64;${env:PATH}
28+
CGO_ENABLED: 1
29+
PATH: ${{ github.workspace }}/lib/win_x86_64;${env:PATH}
30+
CGO_LDFLAGS: -Wl,-rpath,"${{ github.workspace }}/lib/win_x86_64" -L"${SRCDIR}/lib/win_x86_64" -lAspose.Cells.CWrapper
31+
CGO_CXXFLAGS: -I"${{ github.workspace }}
3632
run: |
37-
cd samples
33+
echo "Current dir: $(Get-Location)"
34+
dir "${{ github.workspace }}/lib/win_x86_64"
35+
cd samples
3836
go run .
37+
shell: powershell

0 commit comments

Comments
 (0)