Skip to content

Commit

Permalink
use just for CI, include bench
Browse files Browse the repository at this point in the history
  • Loading branch information
willcl-ark committed Oct 31, 2024
1 parent 5a1ec3f commit 829bdef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ on:
jobs:
build-and-test:
runs-on: [self-hosted, linux, x64]
timeout-minutes: 120
timeout-minutes: 20
steps:
- name: Checkout repo
uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Build release
- name: Build & test release
env:
NIX_PATH: nixpkgs=channel:nixos-unstable
run: |
nix-shell --command "just build && just test"
nix-shell --command "just run-ci"
11 changes: 11 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ alias t := test
# ```

################################################################################
default:
just --list

# Build default project
[group('build')]
Expand All @@ -77,6 +79,11 @@ build-dev *args: clean
cmake -B build --preset dev-mode {{ args }}
cmake --build build -j {{ num_cpus() }}

# Build for the CI, including bench_bitcoin
[group('ci')]
build-ci: clean
cmake -B build -DBUILD_BENCH=ON
cmake --build build -j {{ num_cpus() }}
# Re-build current config
[group('build')]
rebuild:
Expand Down Expand Up @@ -292,3 +299,7 @@ guix-codesign:
[group('guix')]
guix-verify:
contrib/guix/guix-verify

# Run the CI workflow
[group('ci')]
run-ci: build-ci && bench

0 comments on commit 829bdef

Please sign in to comment.