Skip to content

Update rust.yml

Update rust.yml #40

Workflow file for this run

name: Rust
on:
push:
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run clippy
run: cargo clippy -- -D warnings
- name: Upload a Build Artifact
uses: actions/upload-artifact@v6.0.0
with:
# Artifact name
name: ModAutoUpdates
# A file, directory or wildcard pattern that describes what to upload
path: /home/runner/work/ModAutoUpdates/ModAutoUpdates/target/debug/ModAutoUpdates
if-no-files-found: error
# If true, an artifact with a matching name will be deleted before a new one is uploaded. If false, the action will fail if an artifact for the given name already exists. Does not fail if the artifact does not exist.
overwrite: true