-
Notifications
You must be signed in to change notification settings - Fork 15.4k
36 lines (30 loc) · 856 Bytes
/
Copy pathrust.yml
File metadata and controls
36 lines (30 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Rust
on:
push:
branches: ["main"]
paths:
- "codes/rust/**/*.rs"
- "codes/rust/Cargo.toml"
- "en/codes/rust/**/*.rs"
- "en/codes/rust/Cargo.toml"
pull_request:
branches: ["main"]
paths:
- "codes/rust/**/*.rs"
- "codes/rust/Cargo.toml"
- "en/codes/rust/**/*.rs"
- "en/codes/rust/Cargo.toml"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
code-dir: ["codes/rust", "en/codes/rust"]
steps:
- uses: brndnmtthws/rust-action-rustup@v1
with:
toolchain: nightly
- uses: actions/checkout@v4
- name: Build
run: cargo build --manifest-path=${{ matrix.code-dir }}/Cargo.toml && cargo build --manifest-path=${{ matrix.code-dir }}/Cargo.toml --release