From 4d7f1cf6ff7ee0ae4dc0c374c271a0b78929ae20 Mon Sep 17 00:00:00 2001 From: Yury Shvedov Date: Sun, 4 Feb 2024 11:29:51 +0300 Subject: [PATCH] Add fixes to nix workflow Previous workflow actually did not check nix build. Change-Id: I4a9fc3c8a7fcf17aec1328fcc5f340061ac86468 --- .github/workflows/build.yml | 22 ++++++++++++---------- flake.nix | 2 +- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e216ab3..bc711e8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,7 +31,7 @@ jobs: with: path: ./dist/*.pkg.tar.zst name: arch-packages - + - name: Upload Deb artifact uses: actions/upload-artifact@v4 with: @@ -53,16 +53,18 @@ jobs: uses: actions/checkout@v4 with: ref: ${{ (inputs.ref || '') }} - + - name: Install nix uses: cachix/install-nix-action@v22 - - name: Build - run: sh ./.github/workflows/build.sh - - - name: Upload artifact - uses: actions/upload-artifact@v4 + - uses: cachix/cachix-action@v12 with: - path: ./result/* - name: nix-package - \ No newline at end of file + name: yandexmisic + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - name: Build yandexmusic + run: NIXPKGS_ALLOW_UNFREE=1 nix build --impure .#yandexmusic + - name: Build yandexmusic background + run: NIXPKGS_ALLOW_UNFREE=1 nix build --impure .#yandexmusic-background + - name: Build yandexmusic without flakes binaries + run: NIXPKGS_ALLOW_UNFREE=1 nix build --impure .#yandexmusic-noflakes + diff --git a/flake.nix b/flake.nix index e29165b..9357f45 100644 --- a/flake.nix +++ b/flake.nix @@ -18,7 +18,7 @@ { packages = rec { yandexmusic = yandexmusic-with pkgs; - yandexmusic-backgroud = yandexmusic.override { + yandexmusic-background = yandexmusic.override { fixQuit = false; }; yandexmusic-noflakes = pkgs.callPackage ./nix {};