Skip to content
Open

test #52

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/ci_benchmarks_windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ jobs:
scoop install git
scoop bucket add extras
scoop install llvm yasm
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.51.0
- run: |
if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then
devtools/ci/ci_main.sh
Expand All @@ -58,5 +62,9 @@ jobs:
exit 0
fi
shell: bash
- name: check disk
if: always()
run: df -h
shell: bash
env:
RUNNER_LABEL: ${{ needs.prologue.outputs.runner_label }}
8 changes: 8 additions & 0 deletions .github/workflows/ci_integration_tests_windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ jobs:
scoop install git
scoop bucket add extras
scoop install llvm yasm
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.51.0
- run: |
if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then
devtools/ci/ci_main.sh
Expand All @@ -65,5 +69,9 @@ jobs:
with:
name: Integration Logs (${{ runner.os }}, ${{ matrix.os }})
path: target/integration.log
- name: check disk
if: always()
run: df -h
shell: bash
env:
RUNNER_LABEL: ${{ needs.prologue.outputs.runner_label }}
8 changes: 8 additions & 0 deletions .github/workflows/ci_linters_windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ jobs:
scoop install git
scoop bucket add extras
scoop install llvm yasm
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.51.0
- run: |
if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then
devtools/ci/ci_main.sh
Expand All @@ -57,5 +61,9 @@ jobs:
exit 0
fi
shell: bash
- name: check disk
if: always()
run: df -h
shell: bash
env:
RUNNER_LABEL: ${{ needs.prologue.outputs.runner_label }}
9 changes: 9 additions & 0 deletions .github/workflows/ci_quick_checks_windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
needs: prologue
runs-on: windows-2019
steps:

- uses: actions/checkout@v2
- run: |
iex (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
Expand All @@ -49,6 +50,10 @@ jobs:
scoop install git
scoop bucket add extras
scoop install llvm yasm
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.51.0
- run: |
if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then
devtools/ci/ci_main.sh
Expand All @@ -57,5 +62,9 @@ jobs:
exit 0
fi
shell: bash
- name: check disk
if: always()
run: df -h
shell: bash
env:
RUNNER_LABEL: ${{ needs.prologue.outputs.runner_label }}
8 changes: 8 additions & 0 deletions .github/workflows/ci_unit_tests_windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ jobs:
scoop install git
scoop bucket add extras
scoop install llvm yasm
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.51.0
- run: |
if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then
devtools/ci/ci_main.sh
Expand All @@ -57,5 +61,9 @@ jobs:
exit 0
fi
shell: bash
- name: check disk
if: always()
run: df -h
shell: bash
env:
RUNNER_LABEL: ${{ needs.prologue.outputs.runner_label }}
11 changes: 7 additions & 4 deletions devtools/ci/ci_main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,18 @@ case $GITHUB_WORKFLOW in
ci_integration_tests*)
echo "ci_integration_test"
github_workflow_os=`echo $GITHUB_WORKFLOW | awk -F '_' '{print $NF}'`
git submodule update --init
make submodule-init
make setup-ckb-test
cp -f Cargo.lock test/Cargo.lock
cargo build --features deadlock_detection --target-dir $CARGO_TARGET_DIR
cargo build --verbose --release --features "with_sentry,with_dns_seeding" --target-dir $CARGO_TARGET_DIR
rm -rf test/target && ln -snf ${CARGO_TARGET_DIR} test/target
git diff --exit-code Cargo.lock
ls ${CARGO_TARGET_DIR}
cd test
if [[ $github_workflow_os == 'windows' ]];then
cargo run -- --bin ${CARGO_TARGET_DIR}/debug/ckb.exe --log-file target/integration.log ${CKB_TEST_ARGS}
cargo run -- --bin ${CARGO_TARGET_DIR}/release/ckb.exe --log-file target/integration.log ${CKB_TEST_ARGS}
else
cargo run -- --bin ${CARGO_TARGET_DIR}/debug/ckb --log-file target/integration.log ${CKB_TEST_ARGS}
cargo run -- --bin ${CARGO_TARGET_DIR}/release/ckb --log-file target/integration.log ${CKB_TEST_ARGS}
fi
EXIT_CODE="${PIPESTATUS[0]}"
;;
Expand Down