Skip to content
Open
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
1 change: 1 addition & 0 deletions .agents/tasks/2025/06/29-2204-nix-ci-packages
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Make sure the nix packages exposed in the flake are tested in the Nix CI run. Make sure that the nix packaging process is tested on macOS as well. The CI workflows should confirm that the nix packages are working with some basic smoke tests on each platform.
1 change: 1 addition & 0 deletions .agents/tasks/2025/06/29-2222-nix-ci-macos
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Address inline comments from previous PR, ensure Nix packages can build with buildGem function missing, test packaging on macOS, run smoke tests
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ jobs:
}

nix:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -135,3 +139,9 @@ jobs:
run: nix develop -c just build-extension
- name: Run tests via Nix
run: nix develop -c just test
- name: Build Nix packages
run: |
nix build .#codetracer-ruby-recorder -o result-ruby
./result-ruby/bin/codetracer-ruby-recorder --help >/dev/null
nix build .#codetracer-pure-ruby-recorder -o result-pure
./result-pure/bin/codetracer-pure-ruby-recorder --help >/dev/null
7 changes: 4 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,11 @@

packages = forEachSystem (system: let
pkgs = import nixpkgs { inherit system; };
buildGem = gemdir: pkgs.rubyPackages.buildRubyGem {
pname = builtins.baseNameOf gemdir;
buildGem = gemdir: pkgs.buildRubyGem {
gemName = builtins.baseNameOf gemdir;
version = builtins.readFile ./version.txt;
src = gemdir;
src = ./.;
sourceRoot = gemdir;
};
in {
codetracer-ruby-recorder = buildGem ./gems/codetracer-ruby-recorder;
Expand Down
Loading