Skip to content

Bump to mill 0.12.7 and Update CI #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 32 additions & 7 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,38 @@
on: [pull_request]
on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
- labeled
jobs:
checks:
build-and-test:
name: "Build and Test"
runs-on: ubuntu-latest
container: archlinux/archlinux:latest
steps:
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Install dependencies
run: pacman -Syu --noconfirm make mill z3
- uses: actions/checkout@v2
- name: Check Format
run: make checkformat
run: nix-env -i mill verilator z3 -f '<nixpkgs>'
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Test
run: make test

check-format:
name: "Check Format"
runs-on: ubuntu-latest
steps:
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Install dependencies
run: nix-env -i mill -f '<nixpkgs>'
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Test
run: make checkformat
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
!*.cc
!.gitignore
!.scalafmt.conf
!build.sc
!README.md
build/

# mill
!*.mill
!.mill-version
out/
.bsp/
.idea/
Expand Down
1 change: 1 addition & 0 deletions .mill-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.12.7
4 changes: 3 additions & 1 deletion build.sc → build.mill
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package build

// import Mill dependency
import mill._
import mill.define.Sources
Expand Down Expand Up @@ -29,7 +31,7 @@ object playground extends ScalaModule with ScalafmtModule { m =>
)
}

def repositoriesTask = T.task {
def repositoriesTask = Task.Anon {
Seq(
coursier.MavenRepository("https://repo.scala-sbt.org/scalasbt/maven-releases"),
coursier.MavenRepository("https://oss.sonatype.org/content/repositories/releases"),
Expand Down