-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: unlsycn <unlsycn@unlsycn.com>
- Loading branch information
Showing
4 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Check the format of a PR | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
- ready_for_review | ||
- labeled | ||
env: | ||
USER: runner | ||
|
||
# Cancel the current workflow when new commit pushed | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
|
||
check-format: | ||
name: "Check format" | ||
runs-on: [self-hosted, linux, nixos] | ||
strategy: | ||
fail-fast: false | ||
defaults: | ||
run: | ||
working-directory: ./templates/chisel | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: "Check Scala format" | ||
continue-on-error: true | ||
run: | | ||
nix develop -c bash -c 'mill -i gcd.checkFormat && mill -i elaborator.checkFormat' | ||
- name: "Check Rust format" | ||
continue-on-error: true | ||
run: | | ||
cd gcdemu | ||
nix develop -c cargo fmt --check | ||
cd .. | ||
- name: "Check nix format" | ||
continue-on-error: true | ||
run: | | ||
nix fmt -- --check nix flake.nix | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
.bloop | ||
.bsp | ||
.jvm-opts | ||
.mill-jvm-opts | ||
.metals/ | ||
.vscode/ | ||
|
||
out/ | ||
result* | ||
gcd-sim-result/ | ||
/dependencies/ | ||
target/ | ||
|
||
*.vcd | ||
*.fst | ||
*.fsdb | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters