Skip to content

Commit

Permalink
chore: add su95x files to meno repo
Browse files Browse the repository at this point in the history
fixes

add workflow

fix

fix

fix flag config

fix permissions
  • Loading branch information
Revyn112 committed Nov 15, 2023
1 parent a80c837 commit ecdb689
Show file tree
Hide file tree
Showing 500 changed files with 88,782 additions and 5,357 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,61 @@ jobs:
CDN_BUCKET_DESTINATION: addons/a339x/development
run: |
./scripts/cdn.sh $CDN_BUCKET_DESTINATION ./build-a339x/out/build-modules
build-su95x:
runs-on: ubuntu-latest
env:
A32NX_PRODUCTION_BUILD: 1
A32NX_INSTRUMENTS_BUILD_WORKERS: 2
ZIP_NAME: headwindsim-aircraft-su100-95-dev.zip
BUILD_DIR_NAME: development
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
android: true
dotnet: false
haskell: false
large-packages: false
docker-images: false
swap-storage: false
- name: Checkout source
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set BUILT_DATE_TIME
run: echo "BUILT_DATE_TIME=$(date -u -Iseconds)" >> $GITHUB_ENV
- name: Create .env file
run: |
echo A32NX_PRODUCTION_BUILD=1 >> hdw-su95x/.env
echo CLIENT_ID=\"${{ secrets.NAVIGRAPH_CLIENT_ID }}\" >> hdw-su95x/.env
echo CLIENT_SECRET=\"${{ secrets.NAVIGRAPH_CLIENT_SECRET }}\" >> hdw-su95x/.env
echo SENTRY_DSN=\"${{ secrets.SENTRY_DSN }}\" >> hdw-su95x/.env
echo BUILD_DIR_NAME=${{ env.BUILD_DIR_NAME }} >> .env
echo LOCALAZY_READ_KEY=${{ secrets.LOCALAZY_READ_KEY }} >> .env
echo VITE_BUILD=false >> .env
- name: Setup Package
run: |
./scripts/dev-env/run.sh ./scripts/setup.sh --clean
- name: Copy Sources
run: |
./scripts/dev-env/run.sh ./scripts/copy_su95x.sh
- name: Build SU95X Package
run: |
./scripts/dev-env/run.sh ./scripts/build_su95x.sh --no-tty -j 4
docker system prune -af
- name: Build ZIP files
run: |
node ./scripts/fragment-su95x.js
cp ./build-su95x/out/build-modules/modules.json ./build-su95x/out/headwindsim-aircraft-su100-95/install.json
node ./scripts/install-source-su95x.js
mkdir ./${{ env.BUILD_DIR_NAME }}
cd ./build-su95x/out/
zip -r ../../${{ env.BUILD_DIR_NAME }}/${{ env.ZIP_NAME }} ./headwindsim-aircraft-su100-95/
cd ../../
- name: Upload to CloudFlare CDN
env:
CLOUDFLARE_WORKER_PASSWORD: ${{ secrets.CLOUDFLARE_WORKER_PASSWORD }}
CDN_BUCKET_DESTINATION: addons/su95x/development
run: |
./scripts/cdn.sh $CDN_BUCKET_DESTINATION ./build-su95x/out/build-modules
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@
!igniter.config.mjs
!a333x-igniter.config.mjs
!a339x-igniter.config.mjs
!su95x-igniter.config.mjs
!jsconfig.json

!Cargo.lock
Cargo.toml
!Cargo-A333X.toml
!Cargo-A339X.toml
!Cargo-SU95X.toml
!/.cargo/config.toml
!rust-toolchain.toml

Expand All @@ -50,6 +52,10 @@ Cargo.toml
!/hdw-a339x-common/src/
!/hdw-a339x-common/src/**

/hdw-su95x-common/*
!/hdw-su95x-common/src/
!/hdw-su95x-common/src/**

/hdw-a339x/*
/hdw-a339x/.env.local
!/hdw-a339x/README.md
Expand Down Expand Up @@ -78,6 +84,16 @@ Cargo.toml
!/hdw-a333x/src/
!/hdw-a333x/src/**

/hdw-su95x/*
/hdw-su95x/.env.local
!/hdw-su95x/README.md
!/hdw-su95x/mach.config.js
!/hdw-su95x/.env
!/hdw-su95x/docs/
!/hdw-su95x/docs/**
!/hdw-su95x/src/
!/hdw-su95x/src/**

/hdw-a339x/out
/hdw-a339x/src/base/headwindsim-aircraft-a330-900/SimObjects/Airplanes/Headwind_A330neo/model/*.bin
/hdw-a339x/src/base/headwindsim-aircraft-a330-900/SimObjects/Airplanes/Headwind_A330neo/model/*.gltf
Expand Down Expand Up @@ -125,8 +141,10 @@ target/
/build-a333x/
/build-a339x/
/build-a339x-acj/
/build-su95x/
/build-a333x-common/
/build-a339x-common/
/build-su95x-common/

# ======== OLD =============

Expand Down Expand Up @@ -164,3 +182,5 @@ target/
#!/src/**
#!/scripts/**
#!/typings/**

Cargo.lock
10 changes: 5 additions & 5 deletions Cargo.toml → Cargo-SU95X.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ exclude = ["a32nx"]
resolver = "2"

members = [
"build-a333x/src/wasm/systems/a320_systems",
"build-a333x/src/wasm/systems/a320_systems_wasm",
"build-a333x/src/wasm/systems/a320_hydraulic_simulation_graphs",
"build-a333x-common/src/wasm/systems/systems",
"build-a333x-common/src/wasm/systems/systems_wasm",
"build-su95x/src/wasm/systems/a320_systems",
"build-su95x/src/wasm/systems/a320_systems_wasm",
"build-su95x/src/wasm/systems/a320_hydraulic_simulation_graphs",
"build-su95x-common/src/wasm/systems/systems",
"build-su95x-common/src/wasm/systems/systems_wasm",
]

[profile.release]
Expand Down
Loading

0 comments on commit ecdb689

Please sign in to comment.