-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflow: switch to cargo-msfs for building the package (#12)
* workflow(cherrypick): switch to cargo-msfs * chore: update npm workflow run * workflow: attempt to fix new build * workflow: more fixes * workflow: try windows build * workflow: change clang version * workflow: try newer ubuntu * workflow: trying manual clang version * workflow: change clang version * workflow: try windows one last time * fix: package comparison now includes revisions * workflow(fix): correct version of windows * workflow(fix): switch to a different clang installer * workflow(fix): now autocreates the out folder * workflow(fix): final workflow fix * workflow(test): is the preopens issue local * workflow(fix): add winpty to call * fix: implement course for dfdv2 * feat: add description_code to fix output * fix: change test to test-workflow * fix: move winpty * chore: update package version
- Loading branch information
Showing
44 changed files
with
331 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,7 @@ jobs: | |
|
||
build-test: | ||
name: Build & test 🛠️ | ||
runs-on: ubuntu-latest | ||
runs-on: windows-2022 | ||
if: ${{ !github.event.pull_request.draft && !contains(github.event.pull_request.labels.*.name , 'release') }} | ||
steps: | ||
- name: Checkout | ||
|
@@ -60,10 +60,23 @@ jobs: | |
|
||
- name: Create env file | ||
run: | | ||
touch .env | ||
echo NAVIGATION_DATA_SIGNED_URL=${{ secrets.NAVIGATION_DATA_SIGNED_URL }} >> .env | ||
echo NAVIGATION_DATA_SIGNED_URL_V2=${{ secrets.NAVIGATION_DATA_SIGNED_URL_V2 }} >> .env | ||
- name: Install LLVM and Clang | ||
uses: KyleMayes/[email protected] | ||
with: | ||
version: "17.0.6" | ||
|
||
- name: Cache cargo-msfs | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~\.cargo\bin | ||
key: ${{ runner.os }}-cargo-msfs | ||
|
||
- name: Setup | ||
run: npm run setup | ||
|
||
- name: Build WASM module | ||
run: npm run build:wasm-workflow | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,10 +10,24 @@ run-name: Create pre-release for `${{ github.ref_name }}` | |
|
||
jobs: | ||
release-wasm: | ||
runs-on: ubuntu-latest | ||
runs-on: windows-2022 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install LLVM and Clang | ||
uses: KyleMayes/[email protected] | ||
with: | ||
version: "17.0.6" | ||
|
||
- name: Cache cargo-msfs | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~\.cargo\bin | ||
key: ${{ runner.os }}-cargo-msfs | ||
|
||
- name: Setup | ||
run: npm run setup | ||
|
||
- name: Build WASM module | ||
run: npm run build:wasm-workflow | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,24 @@ run-name: Create release for `${{ github.ref_name }}` | |
|
||
jobs: | ||
release-wasm: | ||
runs-on: ubuntu-latest | ||
runs-on: windows-2022 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install LLVM and Clang | ||
uses: KyleMayes/[email protected] | ||
with: | ||
version: "17.0.6" | ||
|
||
- name: Cache cargo-msfs | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~\.cargo\bin | ||
key: ${{ runner.os }}-cargo-msfs | ||
|
||
- name: Setup | ||
run: npm run setup | ||
|
||
- name: Build WASM module | ||
run: npm run build:wasm-workflow | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
[toolchain] | ||
profile = "default" | ||
channel = "1.79.0" | ||
channel = "1.83" | ||
targets = ["wasm32-wasip1"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@echo off | ||
|
||
cd %~dp0 | ||
|
||
mkdir ..\out | ||
|
||
cargo-msfs build msfs2020 -i .. -o ..\out\msfs_navigation_data_interface.wasm |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@echo off | ||
|
||
set image="ghcr.io/flybywiresim/dev-env@sha256:aa36c0e4b8c66c2ec0195a104f8ae04a8ffbf45e8ddb6a8aca4f7237436bd876" | ||
|
||
cd %~dp0 | ||
|
||
docker run --rm -it -v "%cd%\..\:/external" -v "%cd%\..\out:/out" %image% %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@echo off | ||
|
||
cd %~dp0 | ||
|
||
rmdir /s /q ..\test_work | ||
mkdir ..\test_work | ||
|
||
:: Docker is a must for now, WASI preopens don't exist on windows. | ||
winpty .\run_docker_cmd_workflow.bat npm run jest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.