Skip to content

Commit f740e68

Browse files
committed
workflow: try windows build
1 parent d83e12b commit f740e68

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.github/workflows/pre-release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@ run-name: Create pre-release for `${{ github.ref_name }}`
1010

1111
jobs:
1212
release-wasm:
13-
runs-on: ubuntu-latest
13+
runs-on: windows-latest
1414
steps:
1515
- uses: actions/checkout@v4
1616

17+
- name: Setup
18+
run: npm run setup
19+
1720
- name: Build WASM module
18-
run: npm run build:wasm-workflow
21+
run: npm run build:wasm
1922

2023
- name: Pre-Release
2124
uses: softprops/action-gh-release@v1

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"format": "prettier --write .",
88
"lint:js": "eslint \"src/js/**/*.ts\"",
9+
"setup": ".\\scripts\\setup.bat",
910
"build:wasm": ".\\scripts\\build.bat",
1011
"build:wasm-workflow": "./scripts/build.sh",
1112
"build:js": "cd .\\src\\js && npm run build",

scripts/setup.bat

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@echo off
2+
3+
cargo install --git https://github.com/navigraph/cargo-msfs
4+
5+
cargo-msfs install msfs2020

0 commit comments

Comments
 (0)