Skip to content

Commit

Permalink
Update rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Blindspot22 authored Jul 1, 2024
1 parent 2e0d921 commit 4fcb760
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,30 @@ name: Rust

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

env:
CARGO_TERM_COLOR: always
branches:
- main

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build
- name: Run tests
run: cargo test
- name: Check out the repository
uses: actions/checkout@v2

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
override: true

- name: Add rust-src component
run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu

- name: Build the project
run: cargo build --verbose

0 comments on commit 4fcb760

Please sign in to comment.