From 43cf84af2b4cc83d5ac414aabd520fceee12181f Mon Sep 17 00:00:00 2001 From: Eval EXEC Date: Sat, 17 Aug 2024 11:14:14 +0800 Subject: [PATCH] debug macos ci --- .../workflows/ci_aarch64_build_ubuntu.yaml | 61 ----------- .github/workflows/ci_benchmarks_macos.yaml | 63 ----------- .github/workflows/ci_benchmarks_ubuntu.yaml | 69 ------------ .github/workflows/ci_benchmarks_windows.yaml | 74 ------------- .github/workflows/ci_cargo_deny_ubuntu.yaml | 64 ----------- .../workflows/ci_integration_tests_macos.yaml | 6 ++ .../ci_integration_tests_ubuntu.yaml | 100 ------------------ .../ci_integration_tests_windows.yaml | 84 --------------- .github/workflows/ci_linters_macos.yaml | 64 ----------- .github/workflows/ci_linters_ubuntu.yaml | 71 ------------- .github/workflows/ci_quick_checks_macos.yaml | 64 ----------- .github/workflows/ci_quick_checks_ubuntu.yaml | 71 ------------- .github/workflows/ci_unit_tests_macos.yaml | 65 ------------ .github/workflows/ci_unit_tests_ubuntu.yaml | 70 ------------ .github/workflows/ci_unit_tests_windows.yaml | 76 ------------- 15 files changed, 6 insertions(+), 996 deletions(-) delete mode 100644 .github/workflows/ci_aarch64_build_ubuntu.yaml delete mode 100644 .github/workflows/ci_benchmarks_macos.yaml delete mode 100644 .github/workflows/ci_benchmarks_ubuntu.yaml delete mode 100644 .github/workflows/ci_benchmarks_windows.yaml delete mode 100644 .github/workflows/ci_cargo_deny_ubuntu.yaml delete mode 100644 .github/workflows/ci_integration_tests_ubuntu.yaml delete mode 100644 .github/workflows/ci_integration_tests_windows.yaml delete mode 100644 .github/workflows/ci_linters_macos.yaml delete mode 100644 .github/workflows/ci_linters_ubuntu.yaml delete mode 100644 .github/workflows/ci_quick_checks_macos.yaml delete mode 100644 .github/workflows/ci_quick_checks_ubuntu.yaml delete mode 100644 .github/workflows/ci_unit_tests_macos.yaml delete mode 100644 .github/workflows/ci_unit_tests_ubuntu.yaml delete mode 100644 .github/workflows/ci_unit_tests_windows.yaml diff --git a/.github/workflows/ci_aarch64_build_ubuntu.yaml b/.github/workflows/ci_aarch64_build_ubuntu.yaml deleted file mode 100644 index d951832755..0000000000 --- a/.github/workflows/ci_aarch64_build_ubuntu.yaml +++ /dev/null @@ -1,61 +0,0 @@ -name: ci_aarch64_build_ubuntu -concurrency: - group: ci_aarch64_build_ubuntu-${{ github.ref }} - cancel-in-progress: true -on: - pull_request: - types: [ opened, synchronize, reopened ] - push: - branches: - - master - - develop - - 'rc/*' - merge_group: {} - -env: - CARGO_TERM_COLOR: always - RUST_BACKTRACE: full - RUSTFLAGS: -D warnings -jobs: - prologue: - name: prologue - runs-on: ubuntu-20.04 - outputs: - os_skip: ${{ steps.prologue.outputs.os_skip }} - job_skip: ${{ steps.prologue.outputs.job_skip }} - linux_runner_label: ${{ steps.prologue.outputs.linux_runner_label }} - steps: - - uses: actions/checkout@v3 - - name: prologue - id: prologue - uses: ./.github/actions/ci_prologue - with: - GITHUB_EVENT_NAME: ${{ github.event_name }} - COMMIT_MESSAGE: "${{github.event.head_commit.message}}" - PR_COMMONS_BODY: "${{ github.event.pull_request.body }}" - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - LABELS: "${{ toJson(github.event.pull_request.labels.*.name) }}" - GITHUB_REPOSITORY: ${{ github.repository }} - GITHUB_WORKFLOW: ${{ github.workflow }} - ci_aarch64_build_ubuntu: - name: ci_aarch64_build_ubuntu - needs: prologue - runs-on: ${{ needs.prologue.outputs.linux_runner_label }} - steps: - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: 1.75.0 - - uses: actions/checkout@v3 - - run: rustup component add rustfmt - - run: sudo apt-get update && sudo apt-get install libssl-dev pkg-config libclang-dev -y && sudo apt-get install -y gcc-multilib - - name: ci_aarch64_build_ubuntu - run: | - if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then - devtools/ci/ci_main.sh - else - echo "skip job" - exit 0 - fi - env: - RUNNER_LABEL: ${{ needs.prologue.outputs.runner_label }} diff --git a/.github/workflows/ci_benchmarks_macos.yaml b/.github/workflows/ci_benchmarks_macos.yaml deleted file mode 100644 index 24fc63eb14..0000000000 --- a/.github/workflows/ci_benchmarks_macos.yaml +++ /dev/null @@ -1,63 +0,0 @@ -name: ci_benchmarks_macos -concurrency: - group: ci_benchmarks_macos-${{ github.ref }} - cancel-in-progress: true -on: - pull_request: - types: [ opened, synchronize, reopened ] - push: - branches: - - master - - develop - - 'rc/*' - merge_group: {} - -env: - CARGO_TERM_COLOR: always - RUST_BACKTRACE: full - RUSTFLAGS: -D warnings -jobs: - prologue: - name: prologue - if: | - github.event_name != 'push' || - ( github.event_name == 'push' && - ( github.ref == 'refs/heads/master' || - (github.ref == 'refs/heads/develop' && startsWith(github.event.head_commit.message, 'Merge pull request #')) || - startsWith(github.ref, 'refs/heads/rc/') - ) - ) || (github.repository_owner != 'nervosnetwork') - runs-on: ubuntu-20.04 - outputs: - os_skip: ${{ steps.prologue.outputs.os_skip }} - job_skip: ${{ steps.prologue.outputs.job_skip }} - runner_label: ${{ steps.prologue.outputs.runner_label }} - steps: - - uses: actions/checkout@v3 - - name: prologue - id: prologue - uses: ./.github/actions/ci_prologue - with: - GITHUB_EVENT_NAME: ${{ github.event_name }} - COMMIT_MESSAGE: "${{github.event.head_commit.message}}" - PR_COMMONS_BODY: "${{ github.event.pull_request.body }}" - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - LABELS: "${{ toJson(github.event.pull_request.labels.*.name) }}" - GITHUB_REPOSITORY: ${{ github.repository }} - GITHUB_WORKFLOW: ${{ github.workflow }} - ci_benchmarks_macos: - name: ci_benchmarks_macos - needs: prologue - runs-on: macos-12 - steps: - - uses: actions/checkout@v3 - - run: | - if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then - devtools/ci/ci_main.sh - else - echo "skip job" - exit 0 - fi - shell: bash - env: - RUNNER_LABEL: ${{ needs.prologue.outputs.runner_label }} diff --git a/.github/workflows/ci_benchmarks_ubuntu.yaml b/.github/workflows/ci_benchmarks_ubuntu.yaml deleted file mode 100644 index fd797d6946..0000000000 --- a/.github/workflows/ci_benchmarks_ubuntu.yaml +++ /dev/null @@ -1,69 +0,0 @@ -name: ci_benchmarks_ubuntu -concurrency: - group: ci_benchmarks_ubuntu-${{ github.ref }} - cancel-in-progress: true -on: - pull_request: - types: [ opened, synchronize, reopened ] - push: - branches: - - master - - develop - - 'rc/*' - merge_group: {} -env: - CARGO_TERM_COLOR: always - RUST_BACKTRACE: full - RUSTFLAGS: -D warnings -jobs: - prologue: - name: prologue - if: | - github.event_name != 'push' || - ( github.event_name == 'push' && - ( github.ref == 'refs/heads/master' || - (github.ref == 'refs/heads/develop' && startsWith(github.event.head_commit.message, 'Merge pull request #')) || - startsWith(github.ref, 'refs/heads/rc/') - ) - ) || (github.repository_owner != 'nervosnetwork') - runs-on: ubuntu-20.04 - outputs: - os_skip: ${{ steps.prologue.outputs.os_skip }} - job_skip: ${{ steps.prologue.outputs.job_skip }} - linux_runner_label: ${{ steps.prologue.outputs.linux_runner_label }} - steps: - - uses: actions/checkout@v3 - - name: prologue - id: prologue - uses: ./.github/actions/ci_prologue - with: - GITHUB_EVENT_NAME: ${{ github.event_name }} - COMMIT_MESSAGE: "${{github.event.head_commit.message}}" - PR_COMMONS_BODY: "${{ github.event.pull_request.body }}" - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - LABELS: "${{ toJson(github.event.pull_request.labels.*.name) }}" - GITHUB_REPOSITORY: ${{ github.repository }} - GITHUB_WORKFLOW: ${{ github.workflow }} - ci_benchmarks_ubuntu: - name: ci_benchmarks_ubuntu - needs: prologue - runs-on: ${{ needs.prologue.outputs.linux_runner_label }} - steps: - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: 1.75.0 - - run: rustup component add rustfmt - - run: rustup component add clippy - - run: sudo apt-get update && sudo apt-get install -y libssl-dev pkg-config libclang-dev - - uses: actions/checkout@v3 - - run: | - if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then - devtools/ci/ci_main.sh - else - echo "skip job" - exit 0 - fi - shell: bash - env: - RUNNER_LABEL: ${{ needs.prologue.outputs.linux_runner_label }} diff --git a/.github/workflows/ci_benchmarks_windows.yaml b/.github/workflows/ci_benchmarks_windows.yaml deleted file mode 100644 index 94c54c94db..0000000000 --- a/.github/workflows/ci_benchmarks_windows.yaml +++ /dev/null @@ -1,74 +0,0 @@ -name: ci_benchmarks_windows -concurrency: - group: ci_benchmarks_windows-${{ github.ref }} - cancel-in-progress: true -on: - pull_request: - types: [ opened, synchronize, reopened ] - push: - branches: - - master - - develop - - 'rc/*' - merge_group: {} - -env: - CARGO_TERM_COLOR: always - RUST_BACKTRACE: full - RUSTFLAGS: -D warnings -jobs: - prologue: - name: prologue - if: | - github.event_name != 'push' || - ( github.event_name == 'push' && - ( github.ref == 'refs/heads/master' || - (github.ref == 'refs/heads/develop' && startsWith(github.event.head_commit.message, 'Merge pull request #')) || - startsWith(github.ref, 'refs/heads/rc/') - ) - ) || (github.repository_owner != 'nervosnetwork') - runs-on: ubuntu-20.04 - outputs: - os_skip: ${{ steps.prologue.outputs.os_skip }} - job_skip: ${{ steps.prologue.outputs.job_skip }} - windows_runner_label: ${{ steps.prologue.outputs.windows_runner_label }} - steps: - - uses: actions/checkout@v3 - - name: prologue - id: prologue - uses: ./.github/actions/ci_prologue - with: - GITHUB_EVENT_NAME: ${{ github.event_name }} - COMMIT_MESSAGE: "${{github.event.head_commit.message}}" - PR_COMMONS_BODY: "${{ github.event.pull_request.body }}" - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - LABELS: "${{ toJson(github.event.pull_request.labels.*.name) }}" - GITHUB_REPOSITORY: ${{ github.repository }} - GITHUB_WORKFLOW: ${{ github.workflow }} - ci_benchmarks_windows: - name: ci_benchmarks_windows - needs: prologue - runs-on: ${{ needs.prologue.outputs.windows_runner_label }} - steps: - - uses: actions/checkout@v3 - - name: install required tools - if: ${{ needs.prologue.outputs.windows_runner_label == 'windows-2019' }} - run: | - iwr -useb get.scoop.sh -outfile 'install-scoop.ps1' - .\install-scoop.ps1 -RunAsAdmin - echo "$env:USERPROFILE\scoop\shims" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - echo "C:\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - echo "${{ github.workspace }}\devtools\windows" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - scoop install git - scoop bucket add extras - scoop install llvm - - run: | - if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then - devtools/ci/ci_main.sh - else - echo "skip job" - exit 0 - fi - shell: bash - env: - RUNNER_LABEL: ${{ needs.prologue.outputs.windows_runner_label }} diff --git a/.github/workflows/ci_cargo_deny_ubuntu.yaml b/.github/workflows/ci_cargo_deny_ubuntu.yaml deleted file mode 100644 index b197f7ca76..0000000000 --- a/.github/workflows/ci_cargo_deny_ubuntu.yaml +++ /dev/null @@ -1,64 +0,0 @@ -name: ci_cargo_deny_ubuntu -concurrency: - group: ci_cargo_deny_ubuntu-${{ github.ref }} - cancel-in-progress: true -on: - pull_request: - types: [ opened, synchronize, reopened ] - push: - branches: - - master - - develop - - 'rc/*' - merge_group: {} - - -env: - CARGO_TERM_COLOR: always - RUST_BACKTRACE: full - RUSTFLAGS: -D warnings -jobs: - prologue: - name: prologue - if: | - github.event_name != 'push' || - ( github.event_name == 'push' && - ( github.ref == 'refs/heads/master' || - (github.ref == 'refs/heads/develop' && startsWith(github.event.head_commit.message, 'Merge pull request #')) || - startsWith(github.ref, 'refs/heads/rc/') - ) - ) || (github.repository_owner != 'nervosnetwork') - runs-on: ubuntu-20.04 - outputs: - os_skip: ${{ steps.prologue.outputs.os_skip }} - job_skip: ${{ steps.prologue.outputs.job_skip }} - linux_runner_label: ${{ steps.prologue.outputs.linux_runner_label }} - steps: - - uses: actions/checkout@v3 - - name: prologue - id: prologue - uses: ./.github/actions/ci_prologue - with: - GITHUB_EVENT_NAME: ${{ github.event_name }} - COMMIT_MESSAGE: "${{github.event.head_commit.message}}" - PR_COMMONS_BODY: "${{ github.event.pull_request.body }}" - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - LABELS: "${{ toJson(github.event.pull_request.labels.*.name) }}" - GITHUB_REPOSITORY: ${{ github.repository }} - GITHUB_WORKFLOW: ${{ github.workflow }} - ci_cargo_deny_ubuntu: - name: ci_cargo_deny_ubuntu - needs: prologue - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v3 - - name: ci_cargo_deny_ubuntu - run: | - if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then - devtools/ci/ci_main.sh - else - echo "skip job" - exit 0 - fi - env: - RUNNER_LABEL: ${{ needs.prologue.outputs.runner_label }} diff --git a/.github/workflows/ci_integration_tests_macos.yaml b/.github/workflows/ci_integration_tests_macos.yaml index c3719dd970..c19398dec1 100644 --- a/.github/workflows/ci_integration_tests_macos.yaml +++ b/.github/workflows/ci_integration_tests_macos.yaml @@ -58,6 +58,12 @@ jobs: sysctl hw.memsize sysctl hw.ncpu uname -a + printenv PATH + env | grep TMP + ls ${TMPDIR} + ls ${TEMPDIR} + ls ${TMP} + ls ${TEMP} if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then devtools/ci/ci_main.sh else diff --git a/.github/workflows/ci_integration_tests_ubuntu.yaml b/.github/workflows/ci_integration_tests_ubuntu.yaml deleted file mode 100644 index dcb7f3e410..0000000000 --- a/.github/workflows/ci_integration_tests_ubuntu.yaml +++ /dev/null @@ -1,100 +0,0 @@ -name: ci_integration_tests_ubuntu -concurrency: - group: ci_integration_tests_ubuntu-${{ github.ref }} - cancel-in-progress: true -on: - pull_request: - types: [ opened, synchronize, reopened ] - push: - branches: - - master - - develop - - 'rc/*' - merge_group: {} - -env: - CARGO_TERM_COLOR: always - RUST_BACKTRACE: full - RUSTFLAGS: -D warnings - LOGBAK_USER: ${{secrets.LOGBAK_USER}} #LOCBAK_* for upload logs to server when test failed - LOGBAK_PASSWORD: ${{secrets.LOGBAK_PASSWORD}} - LOGBAK_SERVER: ${{secrets.LOGBAK_SERVER}} -jobs: - prologue: - name: prologue - if: | - github.event_name != 'push' || - ( github.event_name == 'push' && - ( github.ref == 'refs/heads/master' || - (github.ref == 'refs/heads/develop' && startsWith(github.event.head_commit.message, 'Merge pull request #')) || - startsWith(github.ref, 'refs/heads/rc/') - ) - ) || (github.repository_owner != 'nervosnetwork') - runs-on: ubuntu-20.04 - outputs: - os_skip: ${{ steps.prologue.outputs.os_skip }} - job_skip: ${{ steps.prologue.outputs.job_skip }} - linux_runner_label: ${{ steps.prologue.outputs.linux_runner_label }} - steps: - - uses: actions/checkout@v3 - - name: prologue - id: prologue - uses: ./.github/actions/ci_prologue - with: - GITHUB_EVENT_NAME: ${{ github.event_name }} - COMMIT_MESSAGE: "${{github.event.head_commit.message}}" - PR_COMMONS_BODY: "${{ github.event.pull_request.body }}" - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - LABELS: "${{ toJson(github.event.pull_request.labels.*.name) }}" - GITHUB_REPOSITORY: ${{ github.repository }} - GITHUB_WORKFLOW: ${{ github.workflow }} - ci_integration_tests_ubuntu: - name: ci_integration_tests_ubuntu - needs: prologue - timeout-minutes: 140 - runs-on: ${{ needs.prologue.outputs.linux_runner_label }} - steps: - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: 1.75.0 - - run: rustup component add rustfmt - - run: rustup component add clippy - - run: sudo apt-get update && sudo apt-get install -y libssl-dev pkg-config libclang-dev - - uses: actions/checkout@v3 - - run: | - if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then - devtools/ci/ci_main.sh - else - echo "skip job" - exit 0 - fi - shell: bash - - name: upload log files - if: always() - uses: actions/upload-artifact@v2 - with: - name: ${{ runner.os }}_integration.log - path: ${{ env.CKB_INTEGRATION_TEST_TMP }}/integration.log - env: - RUNNER_LABEL: ${{ needs.prologue.outputs.linux_runner_label }} - ci_cli_bats_test: - name: ci_cli_bats_test - needs: prologue - runs-on: ${{ needs.prologue.outputs.linux_runner_label }} - steps: - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: 1.75.0 - - run: rustup component add rustfmt - - run: rustup component add clippy - - run: sudo apt-get update && sudo apt-get install -y libssl-dev pkg-config libclang-dev - - uses: actions/checkout@v3 - - name: build ckb and run bats cli test - run: | - make prod - make cli-test - shell: bash - env: - RUNNER_LABEL: ${{ needs.prologue.outputs.linux_runner_label }} diff --git a/.github/workflows/ci_integration_tests_windows.yaml b/.github/workflows/ci_integration_tests_windows.yaml deleted file mode 100644 index c59c12078c..0000000000 --- a/.github/workflows/ci_integration_tests_windows.yaml +++ /dev/null @@ -1,84 +0,0 @@ -name: ci_integration_tests_windows -concurrency: - group: ci_integration_tests_windows-${{ github.ref }} - cancel-in-progress: true -on: - pull_request: - types: [ opened, synchronize, reopened ] - push: - branches: - - master - - develop - - 'rc/*' - merge_group: {} - -env: - CARGO_TERM_COLOR: always - RUST_BACKTRACE: full - RUSTFLAGS: -D warnings - LOGBAK_USER: ${{secrets.LOGBAK_USER}} #LOCBAK_* for upload logs to server when test failed - LOGBAK_PASSWORD: ${{secrets.LOGBAK_PASSWORD}} - LOGBAK_SERVER: ${{secrets.LOGBAK_SERVER}} -jobs: - prologue: - name: prologue - if: | - github.event_name != 'push' || - ( github.event_name == 'push' && - ( github.ref == 'refs/heads/master' || - (github.ref == 'refs/heads/develop' && startsWith(github.event.head_commit.message, 'Merge pull request #')) || - startsWith(github.ref, 'refs/heads/rc/') - ) - ) || (github.repository_owner != 'nervosnetwork') - runs-on: ubuntu-20.04 - outputs: - os_skip: ${{ steps.prologue.outputs.os_skip }} - job_skip: ${{ steps.prologue.outputs.job_skip }} - windows_runner_label: ${{ steps.prologue.outputs.windows_runner_label }} - steps: - - uses: actions/checkout@v3 - - name: prologue - id: prologue - uses: ./.github/actions/ci_prologue - with: - GITHUB_EVENT_NAME: ${{ github.event_name }} - COMMIT_MESSAGE: "${{github.event.head_commit.message}}" - PR_COMMONS_BODY: "${{ github.event.pull_request.body }}" - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - LABELS: "${{ toJson(github.event.pull_request.labels.*.name) }}" - GITHUB_REPOSITORY: ${{ github.repository }} - GITHUB_WORKFLOW: ${{ github.workflow }} - ci_integration_tests_windows: - name: ci_integration_tests_windows - needs: prologue - runs-on: ${{ needs.prologue.outputs.windows_runner_label }} - timeout-minutes: 140 - steps: - - uses: actions/checkout@v3 - - name: install required tools - if: ${{ needs.prologue.outputs.windows_runner_label == 'windows-2019' }} - run: | - iwr -useb get.scoop.sh -outfile 'install-scoop.ps1' - .\install-scoop.ps1 -RunAsAdmin - echo "$env:USERPROFILE\scoop\shims" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - echo "C:\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - echo "${{ github.workspace }}\devtools\windows" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - scoop install git - scoop bucket add extras - scoop install llvm - - run: | - if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then - devtools/ci/ci_main.sh - else - echo "skip job" - exit 0 - fi - shell: bash - - name: upload log files - if: always() - uses: actions/upload-artifact@v2 - with: - name: ${{ runner.os }}_integration.log - path: ${{ env.CKB_INTEGRATION_TEST_TMP }}/integration.log - env: - RUNNER_LABEL: ${{ needs.prologue.outputs.windows_runner_label }} diff --git a/.github/workflows/ci_linters_macos.yaml b/.github/workflows/ci_linters_macos.yaml deleted file mode 100644 index 5999c4f622..0000000000 --- a/.github/workflows/ci_linters_macos.yaml +++ /dev/null @@ -1,64 +0,0 @@ -name: ci_linters_macos -concurrency: - group: ci_linters_macos-${{ github.ref }} - cancel-in-progress: true -on: - pull_request: - types: [ opened, synchronize, reopened ] - push: - branches: - - master - - develop - - 'rc/*' - merge_group: {} - -env: - CARGO_TERM_COLOR: always - RUST_BACKTRACE: full - RUSTFLAGS: -D warnings -jobs: - prologue: - name: prologue - if: | - github.event_name != 'push' || - ( github.event_name == 'push' && - ( github.ref == 'refs/heads/master' || - (github.ref == 'refs/heads/develop' && startsWith(github.event.head_commit.message, 'Merge pull request #')) || - startsWith(github.ref, 'refs/heads/rc/') - ) - ) || (github.repository_owner != 'nervosnetwork') - runs-on: ubuntu-20.04 - outputs: - os_skip: ${{ steps.prologue.outputs.os_skip }} - job_skip: ${{ steps.prologue.outputs.job_skip }} - runner_label: ${{ steps.prologue.outputs.runner_label }} - steps: - - uses: actions/checkout@v3 - - name: prologue - id: prologue - uses: ./.github/actions/ci_prologue - with: - GITHUB_EVENT_NAME: ${{ github.event_name }} - COMMIT_MESSAGE: "${{github.event.head_commit.message}}" - PR_COMMONS_BODY: "${{ github.event.pull_request.body }}" - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - LABELS: "${{ toJson(github.event.pull_request.labels.*.name) }}" - GITHUB_REPOSITORY: ${{ github.repository }} - GITHUB_WORKFLOW: ${{ github.workflow }} - ci_linters_macos: - name: ci_linters_macos - needs: prologue - runs-on: macos-12 - steps: - - uses: actions/checkout@v3 - - run: | - brew install grep gnu-sed - if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then - devtools/ci/ci_main.sh - else - echo "skip job" - exit 0 - fi - shell: bash - env: - RUNNER_LABEL: ${{ needs.prologue.outputs.runner_label }} diff --git a/.github/workflows/ci_linters_ubuntu.yaml b/.github/workflows/ci_linters_ubuntu.yaml deleted file mode 100644 index 3ae10198e2..0000000000 --- a/.github/workflows/ci_linters_ubuntu.yaml +++ /dev/null @@ -1,71 +0,0 @@ -name: ci_linters_ubuntu -concurrency: - group: ci_linters_ubuntu-${{ github.ref }} - cancel-in-progress: true -on: - pull_request: - types: [ opened, synchronize, reopened ] - push: - branches: - - master - - develop - - 'rc/*' - merge_group: {} - -env: - CARGO_TERM_COLOR: always - RUST_BACKTRACE: full - RUSTFLAGS: -D warnings -jobs: - prologue: - name: prologue - if: | - github.event_name != 'push' || - ( github.event_name == 'push' && - ( github.ref == 'refs/heads/master' || - (github.ref == 'refs/heads/develop' && startsWith(github.event.head_commit.message, 'Merge pull request #')) || - startsWith(github.ref, 'refs/heads/rc/') - ) - ) || (github.repository_owner != 'nervosnetwork') - runs-on: ubuntu-20.04 - outputs: - os_skip: ${{ steps.prologue.outputs.os_skip }} - job_skip: ${{ steps.prologue.outputs.job_skip }} - linux_runner_label: ${{ steps.prologue.outputs.linux_runner_label }} - steps: - - uses: actions/checkout@v3 - - name: prologue - id: prologue - uses: ./.github/actions/ci_prologue - with: - GITHUB_EVENT_NAME: ${{ github.event_name }} - COMMIT_MESSAGE: "${{github.event.head_commit.message}}" - PR_COMMONS_BODY: "${{ github.event.pull_request.body }}" - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - LABELS: "${{ toJson(github.event.pull_request.labels.*.name) }}" - GITHUB_REPOSITORY: ${{ github.repository }} - GITHUB_WORKFLOW: ${{ github.workflow }} - ci_linters_ubuntu: - name: ci_linters_ubuntu - needs: prologue - runs-on: ${{ needs.prologue.outputs.linux_runner_label }} - steps: - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: 1.75.0 - - uses: actions/checkout@v3 - - run: rustup component add rustfmt - - run: cargo fmt --all -- --check - - run: rustup component add clippy - - run: sudo apt-get update && sudo apt-get install libssl-dev pkg-config libclang-dev -y - - run: | - if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then - devtools/ci/ci_main.sh - else - echo "skip job" - exit 0 - fi - shell: bash - env: - RUNNER_LABEL: ${{ needs.prologue.outputs.linux_runner_label }} diff --git a/.github/workflows/ci_quick_checks_macos.yaml b/.github/workflows/ci_quick_checks_macos.yaml deleted file mode 100644 index 4e0faea5ae..0000000000 --- a/.github/workflows/ci_quick_checks_macos.yaml +++ /dev/null @@ -1,64 +0,0 @@ -name: ci_quick_checks_macos -concurrency: - group: ci_quick_checks_macos-${{ github.ref }} - cancel-in-progress: true -on: - pull_request: - types: [ opened, synchronize, reopened ] - push: - branches: - - master - - develop - - 'rc/*' - merge_group: {} - -env: - CARGO_TERM_COLOR: always - RUST_BACKTRACE: full - RUSTFLAGS: -D warnings -jobs: - prologue: - name: prologue - if: | - github.event_name != 'push' || - ( github.event_name == 'push' && - ( github.ref == 'refs/heads/master' || - (github.ref == 'refs/heads/develop' && startsWith(github.event.head_commit.message, 'Merge pull request #')) || - startsWith(github.ref, 'refs/heads/rc/') - ) - ) || (github.repository_owner != 'nervosnetwork') - runs-on: ubuntu-20.04 - outputs: - os_skip: ${{ steps.prologue.outputs.os_skip }} - job_skip: ${{ steps.prologue.outputs.job_skip }} - runner_label: ${{ steps.prologue.outputs.runner_label }} - steps: - - uses: actions/checkout@v3 - - name: prologue - id: prologue - uses: ./.github/actions/ci_prologue - with: - GITHUB_EVENT_NAME: ${{ github.event_name }} - COMMIT_MESSAGE: "${{github.event.head_commit.message}}" - PR_COMMONS_BODY: "${{ github.event.pull_request.body }}" - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - LABELS: "${{ toJson(github.event.pull_request.labels.*.name) }}" - GITHUB_REPOSITORY: ${{ github.repository }} - GITHUB_WORKFLOW: ${{ github.workflow }} - ci_quick_checks_macos: - name: ci_quick_checks_macos - needs: prologue - runs-on: macos-12 - steps: - - uses: actions/checkout@v3 - - run: | - brew install grep gnu-sed - if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then - devtools/ci/ci_main.sh - else - echo "skip job" - exit 0 - fi - shell: bash - env: - RUNNER_LABEL: ${{ needs.prologue.outputs.runner_label }} diff --git a/.github/workflows/ci_quick_checks_ubuntu.yaml b/.github/workflows/ci_quick_checks_ubuntu.yaml deleted file mode 100644 index c285d6f669..0000000000 --- a/.github/workflows/ci_quick_checks_ubuntu.yaml +++ /dev/null @@ -1,71 +0,0 @@ -name: ci_quick_checks_ubuntu -concurrency: - group: ci_quick_checks_ubuntu-${{ github.ref }} - cancel-in-progress: true -on: - pull_request: - types: [ opened, synchronize, reopened ] - push: - branches: - - master - - develop - - 'rc/*' - merge_group: {} - -env: - CARGO_TERM_COLOR: always - RUST_BACKTRACE: full - RUSTFLAGS: -D warnings -jobs: - prologue: - name: prologue - if: | - github.event_name != 'push' || - ( github.event_name == 'push' && - ( github.ref == 'refs/heads/master' || - (github.ref == 'refs/heads/develop' && startsWith(github.event.head_commit.message, 'Merge pull request #')) || - startsWith(github.ref, 'refs/heads/rc/') - ) - ) || (github.repository_owner != 'nervosnetwork') - runs-on: ubuntu-20.04 - outputs: - os_skip: ${{ steps.prologue.outputs.os_skip }} - job_skip: ${{ steps.prologue.outputs.job_skip }} - linux_runner_label: ${{ steps.prologue.outputs.linux_runner_label }} - steps: - - uses: actions/checkout@v3 - - name: prologue - id: prologue - uses: ./.github/actions/ci_prologue - with: - GITHUB_EVENT_NAME: ${{ github.event_name }} - COMMIT_MESSAGE: "${{github.event.head_commit.message}}" - PR_COMMONS_BODY: "${{ github.event.pull_request.body }}" - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - LABELS: "${{ toJson(github.event.pull_request.labels.*.name) }}" - GITHUB_REPOSITORY: ${{ github.repository }} - GITHUB_WORKFLOW: ${{ github.workflow }} - ci_quick_checks_ubuntu: - name: ci_quick_checks_ubuntu - needs: prologue - runs-on: ${{ needs.prologue.outputs.linux_runner_label }} - steps: - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: 1.75.0 - - run: rustup component add rustfmt - - uses: actions/checkout@v3 - - run: cargo fmt --all -- --check - - run: rustup component add clippy - - run: sudo apt-get update && sudo apt-get install libssl-dev pkg-config libclang-dev -y - - run: | - if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then - devtools/ci/ci_main.sh - else - echo "skip job" - exit 0 - fi - shell: bash - env: - RUNNER_LABEL: ${{ needs.prologue.outputs.runner_label }} diff --git a/.github/workflows/ci_unit_tests_macos.yaml b/.github/workflows/ci_unit_tests_macos.yaml deleted file mode 100644 index 563d49b0f7..0000000000 --- a/.github/workflows/ci_unit_tests_macos.yaml +++ /dev/null @@ -1,65 +0,0 @@ -name: ci_unit_tests_macos -concurrency: - group: ci_unit_tests_macos-${{ github.ref }} - cancel-in-progress: true -on: - pull_request: - types: [ opened, synchronize, reopened ] - push: - branches: - - master - - develop - - 'rc/*' - merge_group: {} - -env: - CARGO_TERM_COLOR: always - RUST_BACKTRACE: full - RUSTFLAGS: -D warnings -jobs: - prologue: - name: prologue - if: | - github.event_name != 'push' || - ( github.event_name == 'push' && - ( github.ref == 'refs/heads/master' || - (github.ref == 'refs/heads/develop' && startsWith(github.event.head_commit.message, 'Merge pull request #')) || - startsWith(github.ref, 'refs/heads/rc/') - ) - ) || (github.repository_owner != 'nervosnetwork') - runs-on: ubuntu-20.04 - outputs: - os_skip: ${{ steps.prologue.outputs.os_skip }} - job_skip: ${{ steps.prologue.outputs.job_skip }} - runner_label: ${{ steps.prologue.outputs.runner_label }} - steps: - - uses: actions/checkout@v3 - - name: prologue - id: prologue - uses: ./.github/actions/ci_prologue - with: - GITHUB_EVENT_NAME: ${{ github.event_name }} - COMMIT_MESSAGE: "${{github.event.head_commit.message}}" - PR_COMMONS_BODY: "${{ github.event.pull_request.body }}" - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - LABELS: "${{ toJson(github.event.pull_request.labels.*.name) }}" - GITHUB_REPOSITORY: ${{ github.repository }} - GITHUB_WORKFLOW: ${{ github.workflow }} - ci_unit_tests_macos: - name: ci_unit_tests_macos - needs: prologue - runs-on: macos-12 - steps: - - name: Install nextest - uses: taiki-e/install-action@nextest - - uses: actions/checkout@v3 - - run: | - if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then - devtools/ci/ci_main.sh - else - echo "skip job" - exit 0 - fi - shell: bash - env: - RUNNER_LABEL: ${{ needs.prologue.outputs.runner_label }} diff --git a/.github/workflows/ci_unit_tests_ubuntu.yaml b/.github/workflows/ci_unit_tests_ubuntu.yaml deleted file mode 100644 index 61be39a165..0000000000 --- a/.github/workflows/ci_unit_tests_ubuntu.yaml +++ /dev/null @@ -1,70 +0,0 @@ -name: ci_unit_tests_ubuntu -concurrency: - group: ci_unit_tests_ubuntu-${{ github.ref }} - cancel-in-progress: true -on: - pull_request: - types: [ opened, synchronize, reopened ] - push: - branches: - - master - - develop - - 'rc/*' - merge_group: {} - -env: - CARGO_TERM_COLOR: always - RUST_BACKTRACE: full - RUSTFLAGS: -D warnings -jobs: - prologue: - name: prologue - if: | - github.event_name != 'push' || - ( github.event_name == 'push' && - ( github.ref == 'refs/heads/master' || - (github.ref == 'refs/heads/develop' && startsWith(github.event.head_commit.message, 'Merge pull request #')) || - startsWith(github.ref, 'refs/heads/rc/') - ) - ) || (github.repository_owner != 'nervosnetwork') - runs-on: ubuntu-20.04 - outputs: - os_skip: ${{ steps.prologue.outputs.os_skip }} - job_skip: ${{ steps.prologue.outputs.job_skip }} - linux_runner_label: ${{ steps.prologue.outputs.linux_runner_label }} - steps: - - uses: actions/checkout@v3 - - name: prologue - id: prologue - uses: ./.github/actions/ci_prologue - with: - GITHUB_EVENT_NAME: ${{ github.event_name }} - COMMIT_MESSAGE: "${{github.event.head_commit.message}}" - PR_COMMONS_BODY: "${{ github.event.pull_request.body }}" - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - LABELS: "${{ toJson(github.event.pull_request.labels.*.name) }}" - GITHUB_REPOSITORY: ${{ github.repository }} - GITHUB_WORKFLOW: ${{ github.workflow }} - ci_unit_tests_ubuntu: - name: ci_unit_tests_ubuntu - needs: prologue - runs-on: ${{ needs.prologue.outputs.linux_runner_label }} - steps: - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: 1.75.0 - - run: sudo apt-get update && sudo apt-get install -y libssl-dev pkg-config libclang-dev - - name: Install nextest - uses: taiki-e/install-action@nextest - - uses: actions/checkout@v3 - - run: | - if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then - devtools/ci/ci_main.sh - else - echo "skip job" - exit 0 - fi - shell: bash - env: - RUNNER_LABEL: ${{ needs.prologue.outputs.linux_runner_label }} diff --git a/.github/workflows/ci_unit_tests_windows.yaml b/.github/workflows/ci_unit_tests_windows.yaml deleted file mode 100644 index 5ed4332b9d..0000000000 --- a/.github/workflows/ci_unit_tests_windows.yaml +++ /dev/null @@ -1,76 +0,0 @@ -name: ci_unit_tests_windows -concurrency: - group: ci_unit_tests_windows-${{ github.ref }} - cancel-in-progress: true -on: - pull_request: - types: [ opened, synchronize, reopened ] - push: - branches: - - master - - develop - - 'rc/*' - merge_group: {} - -env: - CARGO_TERM_COLOR: always - RUST_BACKTRACE: full - RUSTFLAGS: -D warnings -jobs: - prologue: - name: prologue - if: | - github.event_name != 'push' || - ( github.event_name == 'push' && - ( github.ref == 'refs/heads/master' || - (github.ref == 'refs/heads/develop' && startsWith(github.event.head_commit.message, 'Merge pull request #')) || - startsWith(github.ref, 'refs/heads/rc/') - ) - ) || (github.repository_owner != 'nervosnetwork') - runs-on: ubuntu-20.04 - outputs: - os_skip: ${{ steps.prologue.outputs.os_skip }} - job_skip: ${{ steps.prologue.outputs.job_skip }} - windows_runner_label: ${{ steps.prologue.outputs.windows_runner_label }} - steps: - - uses: actions/checkout@v3 - - name: prologue - id: prologue - uses: ./.github/actions/ci_prologue - with: - GITHUB_EVENT_NAME: ${{ github.event_name }} - COMMIT_MESSAGE: "${{github.event.head_commit.message}}" - PR_COMMONS_BODY: "${{ github.event.pull_request.body }}" - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - LABELS: "${{ toJson(github.event.pull_request.labels.*.name) }}" - GITHUB_REPOSITORY: ${{ github.repositoty }} - GITHUB_WORKFLOW: ${{ github.workflow }} - ci_unit_tests_windows: - name: ci_unit_tests_windows - needs: prologue - runs-on: ${{ needs.prologue.outputs.windows_runner_label }} - steps: - - uses: actions/checkout@v3 - - name: install required tools - if: ${{ needs.prologue.outputs.windows_runner_label == 'windows-2019' }} - run: | - iwr -useb get.scoop.sh -outfile 'install-scoop.ps1' - .\install-scoop.ps1 -RunAsAdmin - echo "$env:USERPROFILE\scoop\shims" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - echo "C:\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - echo "${{ github.workspace }}\devtools\windows" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - scoop install git - scoop bucket add extras - scoop install llvm - - name: Install nextest-rs/nextest - uses: taiki-e/install-action@nextest - - run: | - if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then - devtools/ci/ci_main.sh - else - echo "skip job" - exit 0 - fi - shell: bash - env: - RUNNER_LABEL: ${{ needs.prologue.outputs.windows_runner_label }}