File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments