CI: fix Rust CI workflows (#2942)
- update paths - update working directory - rename files for clarity when merged into the main react repo
Jan Kassens committed
May 7, 2024 at 11:17 UTC
90a5d48a2fb0794dced2a9a26b2451c75808cc51
2 files changed
+19
-11
.github/workflows/compiler-rust-benchmark.yml
renamed
+9
-5
@@ -1,19 +1,23 @@
1
# Runs the parser benchmark on every push to main, and compares it with the previous run
2
-name: Parser Benchmark (Rust)
2
+name: Compiler Benchmark (Rust)
3
4
on:
5
push:
6
branches: ["main"]
7
paths:
8
- .github/workflows/**
9
- - crates/**
10
- - Cargo.*
11
- - ./*.toml
9
+ - compiler/crates/**
10
+ - compiler/Cargo.*
11
+ - compiler/*.toml
12
13
env:
14
CARGO_TERM_COLOR: always
15
RUSTFLAGS: -Dwarnings
16
17
+defaults:
18
+ run:
19
+ working-directory: compiler
20
+
21
jobs:
22
bench:
23
name: Parser Benchmark
@@ -51,4 +55,4 @@ jobs:
55
# Enable Job Summary for PRs
56
summary-always: true
57
# GitHub API token to make a commit comment
54
- github-token: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
58
+ github-token: ${{ secrets.GITHUB_TOKEN }}
.github/workflows/compiler-rust.yml
renamed
+10
-6
@@ -5,20 +5,24 @@ on:
5
branches: ["main"]
6
paths:
7
- .github/workflows/**
8
- - crates/**
9
- - Cargo.*
10
- - ./*.toml
8
+ - compiler/crates/**
9
+ - compiler/Cargo.*
10
+ - compiler/*.toml
11
pull_request:
12
paths:
13
- .github/workflows/**
14
- - crates/**
15
- - Cargo.*
16
- - ./*.toml
14
+ - compiler/crates/**
15
+ - compiler/Cargo.*
16
+ - compiler/*.toml
17
18
env:
19
CARGO_TERM_COLOR: always
20
RUSTFLAGS: -Dwarnings
21
22
+defaults:
23
+ run:
24
+ working-directory: compiler
25
+
26
jobs:
27
test:
28
name: Rust Test (${{ matrix.target.os }})