From 7fe2ea24eb0056e9a4c6c4d0b2913b0b3472be84 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Mon, 12 Aug 2024 02:34:19 +0400 Subject: [PATCH] gha: update ci --- .github/workflows/build.yml | 39 +++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a193b129..8ac1d5d4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: "Cachix Build" +name: "Build and Cache" on: pull_request: push: @@ -10,6 +10,7 @@ jobs: - uses: cachix/install-nix-action@v27 with: nix_path: nixpkgs=channel:nixos-unstable + - uses: DeterminateSystems/magic-nix-cache-action@main - uses: cachix/cachix-action@v14 with: name: sako-nixos-cache @@ -18,4 +19,38 @@ jobs: # If you chose API tokens for write access OR if you have a private cache authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - run: nix run nixpkgs#nixos-rebuild -- --flake .#sakopc build - - run: nix-shell --run "echo OK" + - run: nix-shell --run "echo All done!" + sakotop: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v27 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: DeterminateSystems/magic-nix-cache-action@main + - uses: cachix/cachix-action@v14 + with: + name: sako-nixos-cache + # If you chose signing key for write access + signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' + # If you chose API tokens for write access OR if you have a private cache + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - run: nix run nixpkgs#nixos-rebuild -- --flake .#sakotop build + - run: nix-shell --run "echo All done!" + sakowsl: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v27 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: DeterminateSystems/magic-nix-cache-action@main + - uses: cachix/cachix-action@v14 + with: + name: sako-nixos-cache + # If you chose signing key for write access + signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' + # If you chose API tokens for write access OR if you have a private cache + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - run: nix run nixpkgs#nixos-rebuild -- --flake .#sakowsl build + - run: nix-shell --run "echo All done!"