Update rust.yml #3
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 CI | |
on: | |
push: | |
branches: [ rust ] | |
pull_request: | |
branches: [ main ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
name: Build and Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest] | |
rust: [stable] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust ${{ matrix.rust }} | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
override: true | |
components: rustfmt, clippy | |
- name: Build | |
run: cargo build --verbose --release | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Run clippy | |
run: cargo clippy -- -D warnings | |
- name: Check formatting | |
run: cargo fmt -- --check | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: rtx_remix_downloader-${{ matrix.os }} | |
path: | | |
target/release/rtx_remix_downloader | |
target/release/rtx_remix_downloader.exe | |
if-no-files-found: ignore |