Skip to content

Commit

Permalink
WIP copying .github dir to aleph-node-flooder repo before calling `bu…
Browse files Browse the repository at this point in the history
…ild-aleph-node`...
  • Loading branch information
fixxxedpoint committed Dec 9, 2024
1 parent 3b218ff commit 009bca6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 19 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/_build-aleph-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ jobs:
- name: Build production aleph-node
if: ${{ inputs.production == true }}
run: cargo build --profile production -p aleph-node
run: |
cargo build --profile production --package aleph-node ${{ inputs.additional-flags }}
- name: Get binary artifact name
id: get-artifact-name-binary
Expand Down
39 changes: 21 additions & 18 deletions .github/workflows/nightly-normal-session-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -325,38 +325,41 @@ jobs:
name: Run network flooding test
runs-on: ubuntu-20.04
steps:
- name: Checkout source code for aleph-node
uses: actions/checkout@v4
with:
path: aleph-node-orig

- name: Checkout source code for aleph-node-flooder
uses: actions/checkout@v4
with:
ref: main
repository: Cardinal-Cryptography/aleph-node-flooder
token: ${{ secrets.CI_GH_TOKEN }}
path: aleph-node
- name: Copy .github folder
shell: bash
run: |
echo "dir stats"
pwd
find .
cp -r aleph-node-orig/.github aleph-node/

- name: Copy files
working-directory: ${{ env.WORK_DIR }}/aleph-node-flooder
run: cp -r .github "$GITHUB_WORKSPACE/"

# - name: Copy .github folder
# shell: bash
# run: |
# echo "dir stats"
# pwd
# find .
# cp -r aleph-node-orig/.github aleph-node/

- name: Build aleph-node with flooding routines for both `sync` and `AlephBFT` networks
id: build-aleph-node-flooder
uses: ./.github/workflows/_build-aleph-node.yml
with:
production: false
production: true
additional-flags: "--features network_flooding_test"

- name: Clean aleph-node-flooder repo
shell: bash
run:
rm -r aleph-node
mv aleph-node-orig aleph-node
# - name: Checkout source code for aleph-node
# uses: actions/checkout@v4

# - name: Clean aleph-node-flooder repo
# shell: bash
# run:
# rm -r aleph-node
# mv aleph-node-orig aleph-node

- name: Download aleph-node-flooder docker image
uses: actions/download-artifact@v4
Expand Down

0 comments on commit 009bca6

Please sign in to comment.