CI #796
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
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
schedule: | |
- cron: '50 4 * * *' | |
env: | |
rust_toolchain: stable | |
jobs: | |
compile: | |
name: Compile | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup | Checkout | |
uses: actions/checkout@v2 | |
- name: Setup | Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ env.rust_toolchain }} | |
components: rustfmt, clippy | |
- name: Add wasm target | |
run: rustup target add wasm32-unknown-unknown | |
- name: Setup | Std | |
run: rustup component add rust-src --toolchain ${{ env.rust_toolchain }}-x86_64-unknown-linux-gnu | |
- name: Setup | Default to necessary toolchain | |
run: rustup default ${{ env.rust_toolchain }} | |
- name: Setup | ldproxy | |
run: cargo install ldproxy | |
- name: Setup | Trunk | |
run: cargo install trunk | |
- name: Build Web | Fmt Check | |
run: cd ruwm-web; cargo fmt -- --check | |
# - name: Build Web | Clippy | |
# run: cd ruwm-web; cargo clippy --no-deps -- -Dwarnings | |
- name: Build Web | Compile | |
run: cd ruwm-web; trunk build --release | |
- name: Build Simulator | Fmt Check | |
run: cd ruwm-sim; cargo fmt -- --check | |
# - name: Build Simulator | Clippy | |
# run: cd ruwm-sim; cargo clippy --no-deps -- -Dwarnings | |
- name: Build Simulator | Compile | |
run: cd ruwm-sim; trunk build --release --public-url /ruwm/demo | |
- name: Build | Fmt Check | |
run: cargo fmt -- --check | |
# - name: Build | Clippy | |
# run: export RUWM_WIFI_SSID=; export RUWM_WIFI_PASS=; export ESP_IDF_SDKCONFIG_DEFAULTS=$(pwd)/sdkconfig.defaults; cargo clippy --no-deps --target riscv32imc-esp-espidf -Zbuild-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort -- -Dwarnings | |
- name: Build | Compile | |
run: export __CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS=nightly; export RUSTC_BOOTSTRAP=1; export RUWM_WIFI_SSID=; export RUWM_WIFI_PASS=; export ESP_IDF_SDKCONFIG_DEFAULTS=$(pwd)/sdkconfig.defaults; cargo build --target riscv32imc-esp-espidf -Zbuild-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: ruwm-sim/dist | |
target-folder: /demo |