Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: small wasm support #4683

Merged
merged 5 commits into from
Nov 26, 2024
Merged
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
62 changes: 31 additions & 31 deletions .github/workflows/ci_benchmarks_macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
76 changes: 38 additions & 38 deletions .github/workflows/ci_integration_tests_macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
64 changes: 32 additions & 32 deletions .github/workflows/ci_linters_macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
64 changes: 32 additions & 32 deletions .github/workflows/ci_quick_checks_macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
Loading
Loading