Async memory DPI #989
Workflow file for this run
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
name: Code format check | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- ready_for_review | |
- labeled | |
# 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 code format" | |
runs-on: [self-hosted, linux, nixos] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: "Check Scala code format" | |
run: | | |
export JAVA_TOOL_OPTIONS="$JAVA_OPTS" | |
nix develop ".#t1.elaborator" -c mill -i _.checkFormat | |
- name: "Check difftest code format" | |
run: | | |
nix shell '.#cargo' '.#rustfmt' -c bash -c 'cd difftest && cargo fmt --check' | |