Skip to content

Commit

Permalink
CI: build on true ms windows and run using bash
Browse files Browse the repository at this point in the history
  • Loading branch information
michurin committed Jun 13, 2024
1 parent 716e00d commit 688ff42
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- run: "go version"
- run: "go build ./cmd/..."
- run: "./behavioral-tests/run.sh"
build-windows: # TODO switch to windows-latest and run integration tests
x-build-windows:
runs-on: ubuntu-latest
timeout-minutes: 10
name: "Simple build on MS Windows"
Expand All @@ -40,16 +40,17 @@ jobs:
GOARCH: amd64
- run: "file pplog.exe"
windows:
runs-on: windows-latest # https://github.com/actions/runner-images/blob/main/images/windows/Windows2022-Readme.md
runs-on: windows-latest
timeout-minutes: 10
name: "Build on MS Windows"
steps:
- uses: actions/checkout@v4
- run: "go version"
- shell: bash
- run: "go version" # go1.21.11 # https://github.com/actions/runner-images/blob/main/images/windows/Windows2022-Readme.md
- run: "go build ./cmd/..."
- run: "dir"
- run: "./pplog.exe -v"
- run: "./pplog.exe echo \"{\"\"time\"\":\"\"2024-06-12T12:00:00Z\"\",\"\"level\"\":\"\"INFO\"\",\"\"msg\"\":\"\"Hello\"\"}\""
- run: "./pplog.exe echo '{\"time\":\"2024-06-12T12:00:00Z\",\"level\":\"INFO\",\"msg\":\"Hello\"}'"
test:
runs-on: ubuntu-latest
timeout-minutes: 10
Expand Down

0 comments on commit 688ff42

Please sign in to comment.