Skip to content

Commit

Permalink
workflow: try windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
ZigTag committed Jan 24, 2025
1 parent d83e12b commit f740e68
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ run-name: Create pre-release for `${{ github.ref_name }}`

jobs:
release-wasm:
runs-on: ubuntu-latest
runs-on: windows-latest
steps:
- uses: actions/checkout@v4

- name: Setup
run: npm run setup

- name: Build WASM module
run: npm run build:wasm-workflow
run: npm run build:wasm

- name: Pre-Release
uses: softprops/action-gh-release@v1
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"format": "prettier --write .",
"lint:js": "eslint \"src/js/**/*.ts\"",
"setup": ".\\scripts\\setup.bat",
"build:wasm": ".\\scripts\\build.bat",
"build:wasm-workflow": "./scripts/build.sh",
"build:js": "cd .\\src\\js && npm run build",
Expand Down
5 changes: 5 additions & 0 deletions scripts/setup.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@echo off

cargo install --git https://github.com/navigraph/cargo-msfs

cargo-msfs install msfs2020

0 comments on commit f740e68

Please sign in to comment.