Skip to content

Commit

Permalink
this is never going to end
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Volosatovs <[email protected]>
  • Loading branch information
rvolosatovs committed Sep 19, 2024
1 parent 6fc6a04 commit 91d1d50
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,13 @@ jobs:
- uses: msys2/setup-msys2@v2
if: matrix.config.os == 'windows-latest'
with:
path-type: inherit
update: true
install: mingw-w64-x86_64-toolchain

msystem: MING64
path-type: inherit
- run: git config --global core.autocrlf input
if: matrix.config.os == 'windows-latest'

- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
Expand All @@ -142,8 +144,11 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
if: matrix.config.os != 'windows-latest'
- run: rustup show
if: matrix.config.os != 'windows-latest'
- uses: Swatinem/[email protected]
if: matrix.config.os != 'windows-latest'
- uses: cargo-bins/[email protected]
- run: cargo binstall -y [email protected]
- run: go generate ./tests/go/...
Expand Down Expand Up @@ -178,8 +183,10 @@ jobs:
- uses: msys2/setup-msys2@v2
if: matrix.config.os == 'windows-latest'
with:
path-type: inherit
update: true
install: mingw-w64-x86_64-toolchain
msystem: MING64
path-type: inherit
- run: git config --global core.autocrlf input
if: matrix.config.os == 'windows-latest'

Expand All @@ -192,6 +199,7 @@ jobs:
- uses: cargo-bins/[email protected]
- run: cargo binstall -y [email protected]
- run: cargo test --workspace --all-targets
if: matrix.config.os != 'windows-latest'
- run: go generate -tags=dev ./...
- run: go test -tags=dev ./...
env:
Expand Down
2 changes: 0 additions & 2 deletions west.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

package west

// #cgo windows CFLAGS: -DWASM_API_EXTERN= -DWASI_API_EXTERN=
// #cgo !windows LDFLAGS: -lm -ldl -pthread
// #cgo windows LDFLAGS: -luserenv -lole32 -lntdll -lws2_32 -lkernel32 -lbcrypt
// #include "./include/west.h"
// #include <stdlib.h>
import "C"
Expand Down

0 comments on commit 91d1d50

Please sign in to comment.