diff --git a/.github/workflows/ci_benchmarks_macos.yaml b/.github/workflows/ci_benchmarks_macos.yaml index 24fc63eb14..ec00c52632 100644 --- a/.github/workflows/ci_benchmarks_macos.yaml +++ b/.github/workflows/ci_benchmarks_macos.yaml @@ -4,12 +4,12 @@ concurrency: cancel-in-progress: true on: pull_request: - types: [ opened, synchronize, reopened ] + types: [opened, synchronize, reopened] push: branches: - master - develop - - 'rc/*' + - "rc/*" merge_group: {} env: @@ -20,44 +20,44 @@ 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') + 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 }} + - 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 + runs-on: macos-13 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 + - 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_integration_tests_macos.yaml b/.github/workflows/ci_integration_tests_macos.yaml index 2be0e75b8a..f33e78237e 100644 --- a/.github/workflows/ci_integration_tests_macos.yaml +++ b/.github/workflows/ci_integration_tests_macos.yaml @@ -4,69 +4,69 @@ concurrency: cancel-in-progress: true on: pull_request: - types: [ opened, synchronize, reopened ] + types: [opened, synchronize, reopened] push: branches: - master - develop - - 'rc/*' + - "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_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: 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') + 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 }} + - 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_macos: name: ci_integration_tests_macos needs: prologue timeout-minutes: 140 - runs-on: macos-12 + runs-on: macos-13 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 - - name: upload log files - if: always() - uses: actions/upload-artifact@v4 - with: - name: ${{ runner.os }}_integration.log - path: ${{ env.CKB_INTEGRATION_TEST_TMP }}/integration.log + - 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@v4 + with: + name: ${{ runner.os }}_integration.log + path: ${{ env.CKB_INTEGRATION_TEST_TMP }}/integration.log env: RUNNER_LABEL: ${{ needs.prologue.outputs.runner_label }} diff --git a/.github/workflows/ci_linters_macos.yaml b/.github/workflows/ci_linters_macos.yaml index 5999c4f622..9a9965afb9 100644 --- a/.github/workflows/ci_linters_macos.yaml +++ b/.github/workflows/ci_linters_macos.yaml @@ -4,12 +4,12 @@ concurrency: cancel-in-progress: true on: pull_request: - types: [ opened, synchronize, reopened ] + types: [opened, synchronize, reopened] push: branches: - master - develop - - 'rc/*' + - "rc/*" merge_group: {} env: @@ -20,45 +20,45 @@ 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') + 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 }} + - 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 + runs-on: macos-13 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 + - 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_macos.yaml b/.github/workflows/ci_quick_checks_macos.yaml index 4e0faea5ae..0e0d5a02a1 100644 --- a/.github/workflows/ci_quick_checks_macos.yaml +++ b/.github/workflows/ci_quick_checks_macos.yaml @@ -4,12 +4,12 @@ concurrency: cancel-in-progress: true on: pull_request: - types: [ opened, synchronize, reopened ] + types: [opened, synchronize, reopened] push: branches: - master - develop - - 'rc/*' + - "rc/*" merge_group: {} env: @@ -20,45 +20,45 @@ 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') + 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 }} + - 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 + runs-on: macos-13 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 + - 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_unit_tests_macos.yaml b/.github/workflows/ci_unit_tests_macos.yaml index 563d49b0f7..f3aa5b684a 100644 --- a/.github/workflows/ci_unit_tests_macos.yaml +++ b/.github/workflows/ci_unit_tests_macos.yaml @@ -4,12 +4,12 @@ concurrency: cancel-in-progress: true on: pull_request: - types: [ opened, synchronize, reopened ] + types: [opened, synchronize, reopened] push: branches: - master - develop - - 'rc/*' + - "rc/*" merge_group: {} env: @@ -20,46 +20,46 @@ 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') + 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 }} + - 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 + runs-on: macos-13 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 + - 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/package.yaml b/.github/workflows/package.yaml index 0b31a870dd..1ef5fc235b 100644 --- a/.github/workflows/package.yaml +++ b/.github/workflows/package.yaml @@ -172,7 +172,7 @@ jobs: package-for-mac: name: package-for-mac - runs-on: macos-12 + runs-on: macos-13 strategy: matrix: include: