File tree Expand file tree Collapse file tree 4 files changed +54
-2
lines changed Expand file tree Collapse file tree 4 files changed +54
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Check the format of a PR
2
+ on :
3
+ pull_request :
4
+ types :
5
+ - opened
6
+ - synchronize
7
+ - reopened
8
+ - ready_for_review
9
+ - labeled
10
+ env :
11
+ USER : runner
12
+
13
+ # Cancel the current workflow when new commit pushed
14
+ concurrency :
15
+ group : ${{ github.workflow }}-${{ github.event.pull_request.number }}
16
+ cancel-in-progress : true
17
+
18
+ jobs :
19
+
20
+ check-format :
21
+ name : " Check format"
22
+ runs-on : [self-hosted, linux, nixos]
23
+ strategy :
24
+ fail-fast : false
25
+ defaults :
26
+ run :
27
+ working-directory : ./templates/chisel
28
+ steps :
29
+ - uses : actions/checkout@v4
30
+ with :
31
+ ref : ${{ github.event.pull_request.head.sha }}
32
+ - name : " Check Scala format"
33
+ run : |
34
+ nix develop -c bash -c 'mill gcd.checkFormat && mill elaborator.checkFormat'
35
+ - name : " Check Rust format"
36
+ run : |
37
+ cd gcdemu
38
+ nix develop -c cargo fmt --check
39
+ cd ..
40
+ - name : " Check nix format"
41
+ run : |
42
+ nix fmt -- --check nix flake.nix
43
+
Original file line number Diff line number Diff line change 1
1
.bloop
2
2
.bsp
3
+ .jvm-opts
4
+ .mill-jvm-opts
3
5
.metals /
4
6
.vscode /
7
+
5
8
out /
6
9
result *
10
+ gcd-sim-result /
7
11
/dependencies /
8
12
target /
13
+
14
+ * .vcd
15
+ * .fst
16
+ * .fsdb
17
+ * .log
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ lineEndings = preserve
10
10
includeCurlyBraceInSelectChains = false
11
11
danglingParentheses.preset = true
12
12
13
- align.tokens.add = [
13
+ align.tokens."+" = [
14
14
{
15
15
code = ":"
16
16
}
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ trait GCD extends millbuild.common.HasChisel with ScalafmtModule {
37
37
}
38
38
39
39
object elaborator extends Elaborator
40
- trait Elaborator extends millbuild.common.ElaboratorModule {
40
+ trait Elaborator extends millbuild.common.ElaboratorModule with ScalafmtModule {
41
41
def scalaVersion = T (deps.scalaVer)
42
42
43
43
def panamaconverterModule = panamaconverter
You can’t perform that action at this time.
0 commit comments