Skip to content

Commit a15b5e6

Browse files
committed
ISSUE-CELLSGO-210:Update Github action for linux.
1 parent 89739ab commit a15b5e6

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed
Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will build a golang project
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
33

4-
name: Go
4+
name: Aspose.Cells for Go via C++
55

66
on:
77
push:
@@ -12,26 +12,19 @@ on:
1212
jobs:
1313

1414
build:
15-
name: Aspose.Cells for Go via C++ build and test on Windows
16-
runs-on: windows-latest
15+
runs-on: ubuntu-latest
1716
steps:
1817
- uses: actions/checkout@v4
1918

2019
- name: Set up Go
21-
uses: actions/setup-go@v5
20+
uses: actions/setup-go@v4
2221
with:
2322
go-version: '1.20'
24-
- name: Run Example Code
23+
24+
- name: Build
25+
run: go build -v ./...
26+
27+
- name: Run Example Code.
2528
run: |
26-
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
27-
set CGO_ENABLED=1
28-
set CC=cl.exe
29-
set CXX=cl.exe
30-
set PATH=%CD%\lib\win_x86_64;%PATH%
31-
set CGO_CFLAGS=
32-
set CGO_CXXFLAGS=
33-
echo "Current dir: $(pwd)"
34-
dir "${{ github.workspace }}/lib/win_x86_64"
35-
cd samples
36-
go run .
37-
shell: cmd
29+
cd samples
30+
go run .

0 commit comments

Comments
 (0)