diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 4b2cadb6..814056c5 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -36,13 +36,8 @@ jobs: authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' extraPullNames: nix-community - name: Build release - if: ${{ matrix.target }} != "" run: | nix-build --arg crossSystem '{ config = "${{ matrix.target }}"; }' - - name: Build release - if: ${{ matrix.target }} == "" - run: | - nix-build - name: Upload release artifacts uses: actions/upload-artifact@v4 with: diff --git a/default.nix b/default.nix index 3f39912e..0fe3a3ed 100644 --- a/default.nix +++ b/default.nix @@ -2,7 +2,7 @@ { crossSystem ? null }: let - crossBuildEnabled = !isNull crossSystem; + crossBuildEnabled = crossSystem != null && crossSystem != ""; crossSystems = import ./cross-systems.nix; buildPkgs = import { };