Skip to content

Commit

Permalink
fix wasip1 on Windows GHA
Browse files Browse the repository at this point in the history
Signed-off-by: Edoardo Vacchi <[email protected]>
  • Loading branch information
evacchi committed Feb 9, 2024
1 parent 6647c98 commit 5b869c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,12 @@ jobs:
cd ${{ env.STDLIB_TESTS }}
make build.gowasip1
# The wasip1 stdlib tests are really path sensitive, so they expect a writeable /tmp directory to be available.
# We create it at the root of `C:`. This is normally only necessary on GHA Windows runners.
- if: ${{ matrix.os.name == 'Windows' }}
run: |
mkdir /c/tmp
- name: Run built test binaries
run: |
cd ${{ env.STDLIB_TESTS }}
Expand Down
5 changes: 2 additions & 3 deletions internal/integration_test/stdlibs/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ var (

fsconfig := wazero.NewFSConfig().
WithDirMount(".", "/").
WithDirMount(os.TempDir(), "tmp")
WithDirMount(os.TempDir(), "/tmp")

c, stdout, stderr = defaultModuleConfig()
c = c.WithFSConfig(fsconfig).
Expand Down Expand Up @@ -109,8 +109,7 @@ var (
c, stdout, stderr = defaultModuleConfig()
c = c.WithFSConfig(
wazero.NewFSConfig().
WithDirMount(sysroot, "/").
WithDirMount(os.TempDir(), "tmp")).
WithDirMount(sysroot, "/")).
WithEnv("PWD", normalizedTestdir)

args := []string{fname, "-test.short", "-test.v"}
Expand Down

0 comments on commit 5b869c2

Please sign in to comment.