Skip to content

Esp Distance

Esp Distance #242

Workflow file for this run

name: Rust
on:
push:
branches: [ "master", "amd" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: windows-latest
steps:
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Check fmt
run: rustup component add rustfmt && cargo fmt --check
- name: Build
run: cargo build --verbose --release
env:
RUSTFLAGS: -Ctarget-feature=+crt-static
# Right now there are no tests specified
# - name: Run tests
# run: cargo test --verbose
- name: Upload release build to Discord
run: .github/workflows/discord_upload.sh
shell: bash
if: ${{ github.event_name != 'pull_request' }}
env:
DISCORD_RELEASE_WEBHOOK: ${{ secrets.DISCORD_RELEASE_WEBHOOK }}