Skip to content

Commit

Permalink
ci: build dependencies independently
Browse files Browse the repository at this point in the history
  • Loading branch information
nilp0inter committed Jan 23, 2025
1 parent af4b0d2 commit f0722c9
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/update-hashes-on-develop.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: unstable
name: Update AutoFirma dependency hashes

on:
push:
Expand All @@ -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 }}
Expand Down

0 comments on commit f0722c9

Please sign in to comment.