ESP Color Enhancements + Logo Color #234
Workflow file for this run
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: 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 }} |