Update rust.yml #40
This file contains hidden or 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: | |
| 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 |