Skip to content

Commit 1055476

Browse files
committed
Merge branch 'main' of github.com:xtrinch/tetris-rust
2 parents 11ac11c + 0173bc8 commit 1055476

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/rust.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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@v4
19+
20+
- name: install_dependencies
21+
run: |
22+
sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse"
23+
sudo apt-get update -y -qq
24+
sudo apt-get install libsdl2-dev libsdl2-ttf-dev
25+
26+
- uses: actions-rs/toolchain@v1
27+
with:
28+
toolchain: nightly
29+
override: true
30+
components: rustfmt, clippy
31+
32+
- name: Run cargo build
33+
uses: actions-rs/cargo@v1
34+
with:
35+
command: build
36+
37+
- name: Run cargo test
38+
uses: actions-rs/cargo@v1
39+
with:
40+
command: build

0 commit comments

Comments
 (0)