File tree Expand file tree Collapse file tree 2 files changed +57
-0
lines changed
Expand file tree Collapse file tree 2 files changed +57
-0
lines changed Original file line number Diff line number Diff line change 1+ name : devenv workflow
2+ on :
3+ workflow_call :
4+ inputs :
5+ devenv-target :
6+ required : true
7+ type : string
8+
9+ jobs :
10+ test :
11+ env :
12+ SCCACHE_GHA_ENABLED : " true"
13+ RUSTC_WRAPPER : " sccache"
14+ runs-on : ubuntu-latest
15+ permissions :
16+ contents : read
17+ id-token : write
18+ steps :
19+ - uses : actions/checkout@v4
20+ - uses : DeterminateSystems/nix-installer-action@main
21+ - name : Sccache Action
22+ uses : Mozilla-Actions/sccache-action@main
23+ - name : Run sccache stat for check
24+ shell : bash
25+ run : ${SCCACHE_PATH} --show-stats
26+ - name : Set up cargo cache
27+ uses : actions/cache@v4
28+ with :
29+ path : |
30+ ~/.cargo/bin/
31+ ~/.cargo/registry/index/
32+ ~/.cargo/registry/cache/
33+ ~/.cargo/git/db/
34+ target/
35+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
36+ restore-keys : ${{ runner.os }}-cargo-
37+ - name : install devenv
38+ run : nix profile install nixpkgs#devenv
39+ - name : run devenv target
40+ run : devenv ${{ inputs.devenv-target }}
Original file line number Diff line number Diff line change 1+ name : pushes and pull requests
2+ on :
3+ pull_request :
4+
5+ concurrency :
6+ group : ci-${{ github.workflow }}-${{ github.head_ref || github.ref }}
7+ cancel-in-progress : true
8+
9+ permissions :
10+ contents : read
11+ id-token : write
12+
13+ jobs :
14+ devenv-test :
15+ uses : ./.github/workflows/devenv.yaml
16+ with :
17+ devenv-target : test --log-format tracing-pretty
You can’t perform that action at this time.
0 commit comments