From 40af8c38d85a6fdfe959458635ac8bcf0641ce9c Mon Sep 17 00:00:00 2001 From: Mohamad Fikri Date: Sat, 30 Nov 2024 18:32:35 +0700 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7a8e788..fb0e9a4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,23 +61,6 @@ jobs: authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - run: nix build .#megasync --verbose - run: nix-collect-garbage -d - cli: - if: "${{ github.event_name == 'pull_request' }}" - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: DeterminateSystems/nix-installer-action@v16 - with: - github-token: ${{ secrets.GH_TOKEN }} - extra-conf: "experimental-features = nix-command flakes pipe-operators" - - uses: DeterminateSystems/magic-nix-cache-action@main - - uses: cachix/cachix-action@master - with: - name: fmcachix - # If you chose API tokens for write access OR if you have a private cache - authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - - run: nix build .#trunk .#ytui-music .#extra.encore --verbose - - run: nix-collect-garbage -d wasmer: if: "${{ github.event_name == 'pull_request' }}" runs-on: ubuntu-latest @@ -97,7 +80,7 @@ jobs: authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - run: nix build .#wasmer --verbose - run: nix-collect-garbage -d - cli2: + cli: if: "${{ github.event_name == 'pull_request' }}" runs-on: ubuntu-latest steps: @@ -139,6 +122,11 @@ jobs: nixos: runs-on: ubuntu-latest if: ${{ github.event_name == 'pull_request' }} + needs: + - cli + - wasmer + - git + - megasync steps: - uses: actions/checkout@v4 - uses: DeterminateSystems/nix-installer-action@main @@ -160,7 +148,6 @@ jobs: auto-merge: needs: - cli - - cli2 - wasmer - git - megasync