Skip to content

Commit b616ce0

Browse files
committed
ci: add build workflow
1 parent 02fdbae commit b616ce0

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/rust.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
toolchain:
19+
- stable
20+
- beta
21+
- nightly
22+
23+
steps:
24+
- name: Update apt repositories
25+
run: sudo apt update
26+
- name: Install mold linker
27+
run: sudo apt install mold
28+
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
29+
- uses: actions/checkout@v4
30+
- name: Build
31+
run: cargo build --verbose

0 commit comments

Comments
 (0)