neon_arch
commited on
Commit
โข
6f369b8
1
Parent(s):
7a8bf02
๐ ๏ธ fix: add luajit installation step
Browse files- .github/workflows/rust.yml +25 -22
- .github/workflows/rust_format.yml +3 -0
.github/workflows/rust.yml
CHANGED
@@ -4,10 +4,10 @@ name: Rust
|
|
4 |
on:
|
5 |
push:
|
6 |
branches:
|
7 |
-
-
|
8 |
pull_request:
|
9 |
branches:
|
10 |
-
-
|
11 |
|
12 |
env:
|
13 |
CARGO_TERM_COLOR: always
|
@@ -21,23 +21,26 @@ jobs:
|
|
21 |
- stable
|
22 |
|
23 |
steps:
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
|
|
|
|
|
|
|
4 |
on:
|
5 |
push:
|
6 |
branches:
|
7 |
+
- '**'
|
8 |
pull_request:
|
9 |
branches:
|
10 |
+
- 'rolling'
|
11 |
|
12 |
env:
|
13 |
CARGO_TERM_COLOR: always
|
|
|
21 |
- stable
|
22 |
|
23 |
steps:
|
24 |
+
- uses: leafo/gh-actions-lua@v10
|
25 |
+
with:
|
26 |
+
luaVersion: 'luajit'
|
27 |
+
- uses: actions/checkout@v3
|
28 |
+
- run: rustup toolchain install stable --profile minimal
|
29 |
+
- uses: Swatinem/rust-cache@v2
|
30 |
+
with:
|
31 |
+
prefix-key: ''
|
32 |
+
shared-key: ''
|
33 |
+
key: ''
|
34 |
+
env-vars: ''
|
35 |
+
workspaces: ''
|
36 |
+
cache-directories: ''
|
37 |
+
cache-targets: ''
|
38 |
+
cache-on-failure: ''
|
39 |
+
cache-all-crates: ''
|
40 |
+
save-if: ''
|
41 |
+
- uses: actions/checkout@v3
|
42 |
+
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
|
43 |
+
- name: Build
|
44 |
+
run: cargo build --verbose
|
45 |
+
- name: Run tests
|
46 |
+
run: cargo test --verbose
|
.github/workflows/rust_format.yml
CHANGED
@@ -13,6 +13,9 @@ jobs:
|
|
13 |
name: Rust project
|
14 |
runs-on: ubuntu-latest
|
15 |
steps:
|
|
|
|
|
|
|
16 |
- uses: actions/checkout@v2
|
17 |
- name: Install minimal stable with clippy and rustfmt
|
18 |
uses: actions-rs/toolchain@v1
|
|
|
13 |
name: Rust project
|
14 |
runs-on: ubuntu-latest
|
15 |
steps:
|
16 |
+
- uses: leafo/gh-actions-lua@v10
|
17 |
+
with:
|
18 |
+
luaVersion: 'luajit'
|
19 |
- uses: actions/checkout@v2
|
20 |
- name: Install minimal stable with clippy and rustfmt
|
21 |
uses: actions-rs/toolchain@v1
|