@@ -3,32 +3,42 @@ name: Pre Merge Queue Tasks
33on :
44 pull_request :
55 types : [opened, synchronize]
6+
7+ env :
8+ RUSTC_WRAPPER : sccache
9+ SCCACHE_DIR : /sccache
10+ SCCACHE_CACHE_SIZE : 512G
11+
12+ permissions :
13+ contents : write
14+
615jobs :
716 # This job needs to be called main (the same as the ci.yml workflow)
817 # because of how merge queues work: https://stackoverflow.com/a/78030618
918 main :
10- runs-on : ubuntu-latest
19+ container :
20+ image : ghcr.io/feldera/feldera-dev:sha-80e0a01ee5dc094fd8693d29338d2836852dff1d
21+ options : --user=ubuntu
22+ volumes :
23+ - /sccache:/sccache
24+ runs-on : [self-hosted]
1125 steps :
12- # Required by librdkafka.
13- - name : Install libsasl2-dev
14- run : |
15- sudo apt-get update
16- sudo apt-get install -y libsasl2-dev
17- - uses : actions/checkout@v3
18- - uses : oven-sh/setup-bun@v2
19- - uses : actions-rust-lang/setup-rust-toolchain@v1
26+ - uses : actions/checkout@v4
2027 with :
21- toolchain : 1.87.0
22- components : rustfmt clippy
23- - uses : actions/setup-python@v4
28+ token : ${{ secrets.CI_RELEASE }}
29+ - uses : actions/cache@v4
2430 with :
25- python-version : 3.x
26- - name : Install cargo-machete
27- uses : clechasseur/rs-cargo@v2
28- with :
29- command : install
30- args : cargo-machete@0.7.0
31- - uses : Swatinem/rust-cache@v2
32- - uses : pre-commit/action@v3.0.1
33- - uses : pre-commit-ci/lite-action@v1.1.0
31+ path : ~/.cache/pre-commit
32+ key : pre-commit-3|${{ hashFiles('.pre-commit-config.yaml') }}
33+ - run : pre-commit run --show-diff-on-failure --color=always --all-files
34+ shell : bash
35+ - name : Print sccache stats
36+ run : sccache --show-stats
37+ - uses : stefanzweifel/git-auto-commit-action@b863ae1933cb653a53c021fe36dbb774e1fb9403
3438 if : always()
39+ with :
40+ commit_message : " [ci] apply automatic fixes"
41+ commit_user_name : feldera-bot
42+ commit_user_email : feldera-bot@feldera.com
43+ commit_author : feldera-bot <feldera-bot@feldera.com>
44+ commit_options : " --no-verify --signoff"
0 commit comments