github: Add Windows support for some standalone steps

The actual build & link still needs to be done
This commit is contained in:
Remko Tronçon 2022-10-06 21:34:30 +02:00
parent 1c526a0c49
commit 371ab4c6a7
3 changed files with 13 additions and 5 deletions

View file

@ -19,7 +19,9 @@ runs:
sudo mv /tmp/wabt-1.0.30/lib/*.a /usr/local/lib
shell: bash
- if: runner.os == 'Windows'
run: echo "Not supported yet"
shell: cmd
run: |
curl -L -s https://github.com/WebAssembly/wabt/releases/download/1.0.30/wabt-1.0.30-windows.tar.gz | tar xvz -C /c/tools
cp /c/tools/wabt-1.0.30/bin/* /c/Windows/system32
shell: bash
- run: yarnpkg --pure-lockfile
shell: bash

View file

@ -10,10 +10,14 @@ jobs:
build-standalone:
strategy:
matrix:
os: [macos-latest, ubuntu-18.04]
os: [macos-latest, ubuntu-18.04, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/setup
- run: make -C src/standalone install-deps all
- run: make -C src/standalone check
# TODO: Windows support
if: runner.os != 'Windows'
- run: make -C src/standalone check
# TODO: Windows support
if: runner.os != 'Windows'

View file

@ -23,7 +23,9 @@ let buildConfig = {
esbuild.build(buildConfig).then(
() => {
execSync("./node_modules/.bin/tsc --project tsconfig.package.json");
execSync(
"node node_modules/typescript/bin/tsc --project tsconfig.package.json"
);
},
() => process.exit(1)
);