CLI interface to benchmarking code #257
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: nix-build | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build-nix-packages: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v25 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
# Later, we can use Cachix or similar to distribute the binaries automatically. | |
- uses: DeterminateSystems/magic-nix-cache-action@v2 | |
# This saves us against build failures because the clojure deps | |
# are not yet locked. Since the CI does not automatically release | |
# nix artifacts yet, this reduction in friction is harmless for now | |
# and only means a releaser should run deps-lock and commit. | |
# This can be addressed inclusively with automation around releases. | |
- run: | | |
nix develop '.#depsLock' \ | |
--command bash -c \ | |
"nix run github:jlesquembre/clj-nix#deps-lock" | |
- run: | | |
nix build \ | |
-L \ | |
--no-link \ | |
'.#bin' | |
- run: | | |
nix build \ | |
-L \ | |
-o ./imgTarball \ | |
'.#ociImg' |