From 657e87ecc257f699144a8e5d03cefc8732a36f95 Mon Sep 17 00:00:00 2001 From: Tyler Date: Thu, 17 Jul 2025 21:09:06 -0400 Subject: [PATCH] Update artifact --- .github/workflows/main.yml | 41 +++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f28d743..b0b4e60 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,3 +1,5 @@ +name: build flakes + on: push: @@ -57,27 +59,24 @@ jobs: script: | nh darwin build ./dot_config/flake#darwinConfigurations.${{matrix.hostname}} --no-nom -- --cores 1 -j1 - # - name: Download artifact - # uses: actions/download-artifact@v4 - # with: - # name: ${{ matrix.hostname }}-${{ matrix.arch }} - # path: last-result - # github-token: ${{ github.token }} + - name: upload + uses: eviden-actions/upload-artifact@v2.0.0 + with: + name: ${{ martrix.os }}-${{ matrix.hostname }}-result + path: + result - # - name: extract result - # run: | - # tar -xvf result.tar.gz last-result || true + - name: download last artifact + uses: dawidd6/action-download-artifact@v11 + with: + workflow: main.yml + workflow_conclusion: success + name: ${{ martrix.os }}-${{ matrix.hostname }}-result - # - name: diff - # run: | - # nix run nixpkgs#nvd -- diff last-result result || true + - name: extract result + run: | + tar -xvf ${{ martrix.os }}-${{ matrix.hostname }}-result.tar.gz last-result || true - # - name: compress result - # run: tar -czvf result.tar.gz result || true - - # - name: Upload artifact - # uses: actions/upload-artifact@v4 - # with: - # name: ${{ matrix.hostname }}-${{ matrix.arch }} - # path: result.tar.gz - # github-token: ${{ github.token }} + - name: diff + run: | + nix run nixpkgs#nvd -- diff last-result result || true