From f0722c9e7b057cacb395db97a4f2af344fc42fdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Abdelkader=20Mart=C3=ADnez=20P=C3=A9rez?= Date: Thu, 23 Jan 2025 03:16:49 +0100 Subject: [PATCH] ci: build dependencies independently --- .github/workflows/update-hashes-on-develop.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-hashes-on-develop.yml b/.github/workflows/update-hashes-on-develop.yml index 8ea402b..91bb087 100644 --- a/.github/workflows/update-hashes-on-develop.yml +++ b/.github/workflows/update-hashes-on-develop.yml @@ -1,4 +1,4 @@ -name: unstable +name: Update AutoFirma dependency hashes on: push: @@ -24,15 +24,26 @@ jobs: with: github_access_token: ${{ secrets.GITHUB_TOKEN }} - - name: Build packages and update hashes + - name: Build dependency (jmulticard) and update hash + if: always() shell: /usr/bin/bash -o pipefail -e {0} run: | nix build -L .#autofirma.clienteafirma.dependencies.jmulticard 2>&1 | .github/workflows/replace_mismatching_hashes.pl + + - name: Build dependency (clienteafirma-external) and update hash + if: always() + shell: /usr/bin/bash -o pipefail -e {0} + run: | nix build -L .#autofirma.clienteafirma.dependencies.clienteafirma-external 2>&1 | .github/workflows/replace_mismatching_hashes.pl + + - name: Build dependency (clienteafirma) and update hash + if: always() + shell: /usr/bin/bash -o pipefail -e {0} + run: | nix build -L .#autofirma.clienteafirma.dependencies.clienteafirma 2>&1 | .github/workflows/replace_mismatching_hashes.pl - name: Create Pull Request for the new working hashes - if: ${{ failure() && steps.build-updated-autofirma.conclusion == 'success' }} + if: ${{ failure() }} uses: peter-evans/create-pull-request@v6 with: token: ${{ steps.generate-token.outputs.token }}