mirror of
https://github.com/remko/waforth
synced 2024-11-16 07:47:30 +01:00
github: Add Windows support for some standalone steps
The actual build & link still needs to be done
This commit is contained in:
parent
1c526a0c49
commit
371ab4c6a7
3 changed files with 13 additions and 5 deletions
6
.github/actions/setup/action.yml
vendored
6
.github/actions/setup/action.yml
vendored
|
@ -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
|
||||
|
|
8
.github/workflows/build-standalone.yml
vendored
8
.github/workflows/build-standalone.yml
vendored
|
@ -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'
|
|
@ -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)
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue