File tree Expand file tree Collapse file tree 8 files changed +51
-4
lines changed Expand file tree Collapse file tree 8 files changed +51
-4
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ push :
3
+ branches :
4
+ - main
5
+
6
+ jobs :
7
+ build :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - name : Checkout
11
+ uses : actions/checkout@v2
12
+ - name : Build WASM module
13
+ run : |
14
+ ./src/navdata_updater/scripts/run_docker_cmd.sh ./scripts/build.sh
15
+ - name : Copy WASM to aircraft sample
16
+ run : |
17
+ cp ./src/navdata_updater/out/navdata_updater.wasm ./samples/aircraft/PackageSources/SimObjects/Airplanes/Navigraph_Navdata_Updater_Aircraft/panel/navdata_updater.wasm
18
+ - name : Upload WASM module to GitHub
19
+ uses : actions/upload-artifact@v2
20
+ with :
21
+ name : navdata_updater.wasm
22
+ path : ./src/navdata_updater/out/navdata_updater.wasm
23
+ - name : Upload sample to GitHub
24
+ uses : actions/upload-artifact@v2
25
+ with :
26
+ name : aircraft_sample
27
+ path : ./samples/aircraft/
Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ _PackageInt
4
4
.rollup.cache
5
5
tsconfig.tsbuildinfo
6
6
.vs
7
- Sources / Code / WASM / NavdataUpdater / MSFS / Debug
8
- samples \ aircraft \ PackageSources \h tml_ui \P ages \V Cockpit \I nstruments \N avigraph \D ataUpdaterSample
9
- samples \a ircraft \P ackageSources \S imObjects \A irplanes \N avigraph_Navdata_Updater_Aircraft \p anel \ navdata_updater.wasm
7
+ samples / aircraft / PackageSources / html_ui / Pages / VCockpit / Instruments / Navigraph / DataUpdaterSample
8
+ samples / aircraft / PackageSources / SimObjects / Airplanes / Navigraph_Navdata_Updater_Aircraft / panel / navdata_updater.wasm
9
+ src / navdata_updater / out
10
10
11
11
# Rust
12
12
# will have compiled files and executables
Original file line number Diff line number Diff line change
1
+ @ echo off
2
+
3
+ cd %~dp0
4
+
1
5
.\scripts\run_docker_cmd.bat ./scripts/build.sh
Original file line number Diff line number Diff line change 1
1
@ echo off
2
2
3
+ cd %~dp0
4
+
3
5
if " %1 " == " " (
4
6
echo No Cargo command specified
5
7
) else (
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
1
3
# Flags needed to get sqlite3 to work in the sim
2
4
export LIBSQLITE3_FLAGS=" -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_SHARED_CACHE -D_LARGEFILE64_SOURCE"
3
5
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
1
3
cargo " $@ "
Original file line number Diff line number Diff line change 1
1
@ echo off
2
2
3
3
set image = " ghcr.io/flybywiresim/dev-env@sha256:528f8e1ca9063b9346c7d4f684d7aadbcb58ca1fba2b1a3c2cdd9c820c4236f4"
4
- docker run --rm -it -v " %cd% :/external" -v " %cd% \..\..\..\..\PackageSources\SimObjects\Airplanes\Navigraph_Navdata_Updater_Aircraft\panel:/out" %image% %*
4
+
5
+ cd %~dp0
6
+
7
+ docker run --rm -it -v " %cd% \..\:/external" -v " %cd% \..\out:/out" %image% %*
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ IMAGE=" ghcr.io/flybywiresim/dev-env@sha256:528f8e1ca9063b9346c7d4f684d7aadbcb58ca1fba2b1a3c2cdd9c820c4236f4"
4
+
5
+ cd " $( dirname " $0 " ) "
6
+
7
+ docker run --rm -v " $( pwd) /../:/external" -v " $( pwd) /../out:/out" $IMAGE " $@ "
You can’t perform that action at this time.
0 commit comments