Skip to content

Commit

Permalink
ci: add build-all job
Browse files Browse the repository at this point in the history
  • Loading branch information
serjzimmerman committed Apr 13, 2024
1 parent 7e47d93 commit 1fb4b8f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
on:
- push
jobs:
build-all:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v24
- run: nix run nixpkgs#just build-all
5 changes: 5 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,10 @@ update-inputs:
echo $(cd $(dirname $i) && nix flake update)
done
build-all:
nix build .#blinky -L --show-trace
nix build .#chisel-blinky -L --show-trace
nix build .#chisel-practice -L --show-trace

addlicense:
@find . -type f \( -name "*.cpp" -o -name "*.hpp" -o -name "*.cc" -o -name "*.h" \) -exec addlicense -f LICENSE -l mit {} \;
5 changes: 3 additions & 2 deletions projects/chisel-practice/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ mkSbtDerivation {
runHook postBuild
'';

depsSha256 = "sha256-jeLxdCXKVIrWjLtXGyu80halnMckL92AR9BumR2Lsew=";
depsSha256 = "sha256-g1aqoVPugEIxSrmw7S0+MM6TnD4O0IzdFZiRpmQCHQI=";

installPhase = ''
install -Dm 444 -T blinky.fs $out/share/blinky.fs
mkdir -p $out/share
install -Dm 444 *.fs -t $out/share
'';
}
1 change: 1 addition & 0 deletions projects/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
blinky = pkgs.callPackage ./blinky { };
blinkygen-chisel = pkgs.callPackage ./chisel-blinky { };
chisel-blinky = pkgs.callPackage ./chisel-blinky { };
chisel-practice = pkgs.callPackage ./chisel-practice { };
};
}

0 comments on commit 1fb4b8f

Please sign in to comment.