fix: Fix publish binary gh action (#177)

This commit is contained in:
Steve Degosserie 2025-09-18 08:04:54 +02:00 committed by GitHub
parent 5b55659bba
commit 5c2fe2a7a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 9 deletions

View file

@ -13,7 +13,7 @@ runs:
- name: Download sources from artifacts
uses: actions/download-artifact@v4
with:
name: datahaven-sources-${{ inputs.target }}
name: datahaven-sources
path: .
- name: Build production DataHaven
shell: bash
@ -53,5 +53,5 @@ runs:
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: datahavenbinaries-${{inputs.target}}
name: datahaven-binaries-${{inputs.target}}
path: build/datahaven-node-${{inputs.target }}

View file

@ -12,8 +12,26 @@ on:
required: true
jobs:
prepare-sources:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v5
with:
ref: ${{ github.event.inputs.to }}
fetch-depth: 0
- name: Upload sources as artifact
uses: actions/upload-artifact@v4
with:
name: datahaven-sources
path: .
retention-days: 1
build-binary:
runs-on: ubuntu-latest
needs: ["prepare-sources"]
permissions:
contents: read
strategy:
@ -24,13 +42,6 @@ jobs:
uses: actions/checkout@v5
with:
ref: ${{ github.event.inputs.to }}
fetch-depth: 0
- name: Upload sources as artifact
uses: actions/upload-artifact@v4
with:
name: datahaven-sources-${{ matrix.cpu }}
path: .
retention-days: 1
- name: Cargo build
uses: ./.github/workflow-templates/build-prod-binary
with: