Skip to content
Merged
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
21 changes: 19 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,18 @@ jobs:
- scenario: on ubuntu
runs-on: ubuntu-24.04
os: linux
sanitizers: false
primary: true
- scenario: on macos
runs-on: macos-14
os: darwin
sanitizers: false
primary: true
- scenario: on ubuntu (with sanitizers)
runs-on: ubuntu-24.04
os: linux
sanitizers: true
primary: false
name: tests ${{ matrix.scenario }}
runs-on: ${{ matrix.runs-on }}
timeout-minutes: 60
Expand All @@ -52,13 +61,21 @@ jobs:
# https://ubuntu.com/blog/ubuntu-23-10-restricted-unprivileged-user-namespaces
- run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
if: matrix.os == 'linux'
- run: scripts/build-checks
- run: scripts/prepare-installer-for-github-actions
- name: Run component tests
run: |
nix build --file ci/gha/tests componentTests -L \
--arg withSanitizers ${{ matrix.sanitizers }}
- name: Run flake checks and prepare the installer tarball
run: |
ci/gha/tests/build-checks
ci/gha/tests/prepare-installer-for-github-actions
if: ${{ matrix.primary }}
- name: Upload installer tarball
uses: actions/upload-artifact@v4
with:
name: installer-${{matrix.os}}
path: out/*
if: ${{ matrix.primary }}

installer_test:
needs: [tests]
Expand Down
File renamed without changes.
24 changes: 5 additions & 19 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -337,25 +337,11 @@
# Add "passthru" tests
//
flatMapAttrs
(
{
"" = {
pkgs = nixpkgsFor.${system}.native;
};
}
// lib.optionalAttrs (!nixpkgsFor.${system}.native.stdenv.hostPlatform.isDarwin) {
# TODO: enable static builds for darwin, blocked on:
# https://github.com/NixOS/nixpkgs/issues/320448
# TODO: disabled to speed up GHA CI.
# "static-" = {
# pkgs = nixpkgsFor.${system}.native.pkgsStatic;
# };
"sanitized-" = {
pkgs = nixpkgsFor.${system}.native;
withSanitizers = true;
};
}
)
{
"" = {
pkgs = nixpkgsFor.${system}.native;
};
}
(
nixpkgsPrefix: args:
(import ./ci/gha/tests (
Expand Down
Loading