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 0a2e663 commit 447301a
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
on:
- push
jobs:
build-all:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v24
- uses: DeterminateSystems/magic-nix-cache-action@v0.1.3
- uses: docker/setup-qemu-action@v3
with:
platforms: aarch64
- run: nix run nixpkgs#just build-all
1 change: 1 addition & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
with:
fetch-depth: 0
- uses: cachix/install-nix-action@v24
- uses: DeterminateSystems/magic-nix-cache-action@0.1.3
- uses: docker/setup-qemu-action@v3
with:
platforms: aarch64
Expand Down
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 447301a

Please sign in to comment.