Skip to content

Commit

Permalink
Create rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
goshawk-3 authored and Goshawk committed Aug 12, 2024
1 parent 687e0c8 commit ebcbc59
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Rust

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: dsherret/rust-toolchain-file@v1
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
4 changes: 2 additions & 2 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.76.0-x86_64-unknown-linux-gnu"
components = ["rust-src", "rustfmt", "cargo", "clippy"]
channel = "stable-2024-08-08"
components = ["rustfmt", "cargo", "clippy"]

0 comments on commit ebcbc59

Please sign in to comment.