Skip to content

Fix WASM/ update lateral laws #82

Fix WASM/ update lateral laws

Fix WASM/ update lateral laws #82

Workflow file for this run

name: PR
on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
jobs:
lint:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- name: Checkout source
uses: actions/checkout@v2
with:
submodules: recursive
- name: install
run: sudo ./scripts/dev-env/run.sh ./scripts/setup.sh
- name: copy sources
run: sudo ./scripts/dev-env/run.sh ./scripts/copy_a339x.sh
- name: npm run lint
run: ./scripts/dev-env/run.sh npm run lint
- name: lint-rust.sh
run: |
./scripts/dev-env/run.sh scripts/lint-rust.sh
test-rust:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- name: Checkout source
uses: actions/checkout@v2
with:
submodules: recursive
- name: copy sources
run: sudo ./scripts/dev-env/run.sh ./scripts/copy.sh
- name: test-rust.sh
run: |
./scripts/dev-env/run.sh scripts/test-rust.sh
test-js:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- name: Checkout source
uses: actions/checkout@v2
with:
submodules: recursive
- name: npm install
run: ./scripts/dev-env/run.sh ./scripts/setup.sh
- name: copy sources
run: sudo ./scripts/dev-env/run.sh ./scripts/copy_a339x.sh
- name: npm test
run: npm test
build:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
env:
run: |
echo A32NX_PRODUCTION_BUILD=1 >> hdw-a339x/.env
echo FBW_TYPECHECK=1 >> hdw-a339x/.env
echo CLIENT_ID=\"${{ secrets.NAVIGRAPH_CLIENT_ID }}\" >> hdw-a339x/.env
echo CLIENT_SECRET=\"${{ secrets.NAVIGRAPH_CLIENT_SECRET }}\" >> hdw-a339x/.env
echo CHARTFOX_SECRET=\"${{ secrets.CHARTFOX_SECRET }}\" >> hdw-a339x/.env
echo SENTRY_DSN=\"${{ secrets.SENTRY_DSN }}\" >> hdw-a339x/.env
echo LOCALAZY_READ_KEY=${{ secrets.LOCALAZY_READ_KEY }} >> .env
echo VITE_BUILD=false >> .env
steps:
- name: Checkout source
uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup Package
run: |
./scripts/dev-env/run.sh ./scripts/setup.sh
- name: Copy Sources
run: |
./scripts/dev-env/run.sh ./scripts/copy_a339x.sh
- name: Build A339X Package
run: |
./scripts/dev-env/run.sh ./scripts/build_a339x.sh --no-tty -j 4
docker system prune -af
- name: Generate install.json
run: |
node ./scripts/fragment.js
cp ./build-a339x/out/build-modules/modules.json ./build-a339x/out/headwindsim-aircraft-a330-900/install.json
node ./scripts/install-source.js
- uses: actions/upload-artifact@v2
with:
name: HEADWIND-A339X
path: ./build-a339x/out/headwindsim-aircraft-a330-900/