diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 41fd475..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,67 +0,0 @@ -name: nix ci - -on: - push: - -jobs: - eval: - name: eval flake - runs-on: ubuntu-latest - - outputs: - matrix: ${{ steps.eval.outputs.matrix }} - - steps: - - uses: actions/checkout@v4 - - uses: DeterminateSystems/nix-installer-action@v9 - - - name: evaluate packages - id: eval - run: echo "matrix=$(nix eval --json .#ghaMatrix)" >> "$GITHUB_OUTPUT" - - build: - needs: eval - strategy: - matrix: ${{ fromJson(needs.eval.outputs.matrix) }} - - name: build ${{ matrix.pkg }} - runs-on: ${{ matrix.os }} - - steps: - - uses: actions/checkout@v4 - - uses: DeterminateSystems/nix-installer-action@v9 - - - name: setup cachix - uses: cachix/cachix-action@v13 - with: - name: uku3lig - authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} - - - name: build - run: nix build -L --accept-flake-config .#${{ matrix.pkg }} - - deploy: - needs: build - runs-on: ubuntu-latest - if: github.ref == 'refs/heads/somebranchnamethatwillneverexistcolonthree' - - steps: - - uses: actions/checkout@v4 - - uses: DeterminateSystems/nix-installer-action@v9 - - - name: connect to tailscale - uses: tailscale/github-action@v2 - with: - oauth-client-id: ${{ secrets.TS_CLIENT_ID }} - oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} - tags: tag:gha - - - name: copy known_hosts - run: | - set -eux - - [ ! -d ~/.ssh ] && mkdir -p ~/.ssh - cp .known_hosts ~/.ssh/known_hosts - - - name: deploy - run: nix run --inputs-from . 'nixpkgs#deploy-rs' -- -s diff --git a/exprs/default.nix b/exprs/default.nix index 777b170..fc57ca0 100644 --- a/exprs/default.nix +++ b/exprs/default.nix @@ -6,7 +6,6 @@ perSystem = {pkgs, ...}: { packages = { reposilite = pkgs.callPackage ./reposilite/derivation.nix {}; - wine-discord-ipc-bridge = pkgs.callPackage ./wine-discord-ipc-bridge.nix {}; }; }; } diff --git a/parts/ci.nix b/parts/ci.nix deleted file mode 100644 index cc90dc2..0000000 --- a/parts/ci.nix +++ /dev/null @@ -1,45 +0,0 @@ -{ - self, - inputs, - ... -}: { - perSystem = { - lib, - pkgs, - system, - ... - }: { - packages = let - overlay = lib.fix (final: (import ../exprs/overlay.nix final pkgs)); - - # do not include a package if it's not available on the system or if it's broken - isValid = _: v: - lib.elem pkgs.system (v.meta.platforms or [pkgs.system]) && !(v.meta.broken or false); - in - lib.filterAttrs isValid overlay; - }; - - flake.ghaMatrix.include = let - inherit (inputs.nixpkgs) lib; - - platforms = { - "x86_64-linux" = { - os = "ubuntu-latest"; - }; - }; - in - lib.pipe platforms [ - builtins.attrNames # get systems - (systems: lib.getAttrs systems self.packages) # get packages of each system - (lib.mapAttrs (_: builtins.attrNames)) # keep only the name of each package - - # map each package in each system to an attrset - (lib.mapAttrsToList (system: - builtins.map (pkg: { - inherit (platforms.${system}) os; - pkg = "packages.${system}.${pkg}"; - }))) - - lib.flatten - ]; -} diff --git a/parts/default.nix b/parts/default.nix index 710279c..ef23bca 100644 --- a/parts/default.nix +++ b/parts/default.nix @@ -1,6 +1,5 @@ { imports = [ - ./ci.nix ./deploy.nix ./dev.nix ];