Skip to content

Commit

Permalink
WIP moved source checkout for aleph-node-flooder to top level (build-…
Browse files Browse the repository at this point in the history
…aleph-node might try to override it and fail)
  • Loading branch information
fixxxedpoint committed Dec 9, 2024
1 parent da8738c commit 0e271b9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 25 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/_build-aleph-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ on:
description: 'git ref: hash, branch, tag to build aleph-node binary from'
type: string
required: true
repository:
description: 'Repository name with owner. For example, actions/checkout. Default:
github.repository'
required: false
type: string
default: ${{ github.repository }}
production:
description: 'Set to true to build production binary, otherwise set to false'
type: boolean
Expand All @@ -25,11 +19,6 @@ on:
type: string
required: false
default: ''
token:
description: 'Personal access token (PAT) used to fetch the repository.'
type: string
required: false
default: ${{ github.token }}
outputs:
artifact-name-binary:
description: 'Name of artifact aleph-node binary'
Expand All @@ -51,21 +40,10 @@ jobs:
artifact-name-image: ${{ steps.get-artifact-name-image.outputs.name }}
steps:
- name: Checkout aleph-node source code
if: inputs.token == ''
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
repository: ${{ inputs.repository }}
fetch-depth: 0

- name: Checkout aleph-node source code
if: inputs.token != ''
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
repository: ${{ inputs.repository }}
fetch-depth: 0
token: ${{ inputs.token }}

- name: Call action get-ref-properties
id: get-ref-properties
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/nightly-normal-session-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -325,14 +325,19 @@ jobs:
name: Run network flooding test
runs-on: ubuntu-20.04
steps:
- name: Build aleph-node with flooding routines for both sync-network and AlephBFT network
uses: ./.github/workflows/_build-aleph-node.yml
- name: Checkout aleph-node-flooder source code
uses: actions/checkout@v4
with:
ref: main
repository: Cardinal-Cryptography/aleph-node-flooder
fetch-depth: 0
token: ${{ secrets.CI_GH_TOKEN }}

- name: Build aleph-node with flooding routines for both sync-network and AlephBFT network
uses: ./.github/workflows/_build-aleph-node.yml
with:
production: false
additional-flags: "--features network_flooding_test"
token: ${{ secrets.CI_GH_TOKEN }}

- name: Checkout source code
uses: actions/checkout@v4
Expand Down

0 comments on commit 0e271b9

Please sign in to comment.