Skip to content

Commit a4fb5e8

Browse files
yuxuanchen1997facebook-github-bot
authored andcommitted
Create Github workflow for Rust (#19)
Summary: Pull Request resolved: #19 Reviewed By: yuxuanchen1997 Differential Revision: D41127719 Pulled By: arnaudvenet fbshipit-source-id: 9f0b80490107dc935958ca6c47de8032a192b965
1 parent 8c9513d commit a4fb5e8

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/rust.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Install latest nightly
20+
uses: actions-rs/toolchain@v1
21+
with:
22+
toolchain: nightly
23+
override: true
24+
components: rustfmt, clippy
25+
- name: Build
26+
working-directory: ./rust
27+
run: cargo build --verbose
28+
- name: Run tests
29+
working-directory: ./rust
30+
run: cargo test --verbose

0 commit comments

Comments
 (0)