Skip to content

Commit 80cfe48

Browse files
authored
Merge pull request #4683 from driftluo/small-wasm-support
feat: small wasm support
2 parents 6ed0976 + e300990 commit 80cfe48

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1107
-495
lines changed

.github/workflows/ci_benchmarks_macos.yaml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ concurrency:
44
cancel-in-progress: true
55
on:
66
pull_request:
7-
types: [ opened, synchronize, reopened ]
7+
types: [opened, synchronize, reopened]
88
push:
99
branches:
1010
- master
1111
- develop
12-
- 'rc/*'
12+
- "rc/*"
1313
merge_group: {}
1414

1515
env:
@@ -20,44 +20,44 @@ jobs:
2020
prologue:
2121
name: prologue
2222
if: |
23-
github.event_name != 'push' ||
24-
( github.event_name == 'push' &&
25-
( github.ref == 'refs/heads/master' ||
26-
(github.ref == 'refs/heads/develop' && startsWith(github.event.head_commit.message, 'Merge pull request #')) ||
27-
startsWith(github.ref, 'refs/heads/rc/')
28-
)
29-
) || (github.repository_owner != 'nervosnetwork')
23+
github.event_name != 'push' ||
24+
( github.event_name == 'push' &&
25+
( github.ref == 'refs/heads/master' ||
26+
(github.ref == 'refs/heads/develop' && startsWith(github.event.head_commit.message, 'Merge pull request #')) ||
27+
startsWith(github.ref, 'refs/heads/rc/')
28+
)
29+
) || (github.repository_owner != 'nervosnetwork')
3030
runs-on: ubuntu-20.04
3131
outputs:
3232
os_skip: ${{ steps.prologue.outputs.os_skip }}
3333
job_skip: ${{ steps.prologue.outputs.job_skip }}
3434
runner_label: ${{ steps.prologue.outputs.runner_label }}
3535
steps:
36-
- uses: actions/checkout@v3
37-
- name: prologue
38-
id: prologue
39-
uses: ./.github/actions/ci_prologue
40-
with:
41-
GITHUB_EVENT_NAME: ${{ github.event_name }}
42-
COMMIT_MESSAGE: "${{github.event.head_commit.message}}"
43-
PR_COMMONS_BODY: "${{ github.event.pull_request.body }}"
44-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
45-
LABELS: "${{ toJson(github.event.pull_request.labels.*.name) }}"
46-
GITHUB_REPOSITORY: ${{ github.repository }}
47-
GITHUB_WORKFLOW: ${{ github.workflow }}
36+
- uses: actions/checkout@v3
37+
- name: prologue
38+
id: prologue
39+
uses: ./.github/actions/ci_prologue
40+
with:
41+
GITHUB_EVENT_NAME: ${{ github.event_name }}
42+
COMMIT_MESSAGE: "${{github.event.head_commit.message}}"
43+
PR_COMMONS_BODY: "${{ github.event.pull_request.body }}"
44+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
45+
LABELS: "${{ toJson(github.event.pull_request.labels.*.name) }}"
46+
GITHUB_REPOSITORY: ${{ github.repository }}
47+
GITHUB_WORKFLOW: ${{ github.workflow }}
4848
ci_benchmarks_macos:
4949
name: ci_benchmarks_macos
5050
needs: prologue
51-
runs-on: macos-12
51+
runs-on: macos-13
5252
steps:
53-
- uses: actions/checkout@v3
54-
- run: |
55-
if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then
56-
devtools/ci/ci_main.sh
57-
else
58-
echo "skip job"
59-
exit 0
60-
fi
61-
shell: bash
53+
- uses: actions/checkout@v3
54+
- run: |
55+
if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then
56+
devtools/ci/ci_main.sh
57+
else
58+
echo "skip job"
59+
exit 0
60+
fi
61+
shell: bash
6262
env:
6363
RUNNER_LABEL: ${{ needs.prologue.outputs.runner_label }}

.github/workflows/ci_integration_tests_macos.yaml

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4,69 +4,69 @@ concurrency:
44
cancel-in-progress: true
55
on:
66
pull_request:
7-
types: [ opened, synchronize, reopened ]
7+
types: [opened, synchronize, reopened]
88
push:
99
branches:
1010
- master
1111
- develop
12-
- 'rc/*'
12+
- "rc/*"
1313
merge_group: {}
1414

1515
env:
1616
CARGO_TERM_COLOR: always
1717
RUST_BACKTRACE: full
1818
RUSTFLAGS: -D warnings
19-
LOGBAK_USER: ${{secrets.LOGBAK_USER}} #LOCBAK_* for upload logs to server when test failed
19+
LOGBAK_USER: ${{secrets.LOGBAK_USER}} #LOCBAK_* for upload logs to server when test failed
2020
LOGBAK_PASSWORD: ${{secrets.LOGBAK_PASSWORD}}
2121
LOGBAK_SERVER: ${{secrets.LOGBAK_SERVER}}
2222
jobs:
2323
prologue:
2424
if: |
25-
github.event_name != 'push' ||
26-
( github.event_name == 'push' &&
27-
( github.ref == 'refs/heads/master' ||
28-
(github.ref == 'refs/heads/develop' && startsWith(github.event.head_commit.message, 'Merge pull request #')) ||
29-
startsWith(github.ref, 'refs/heads/rc/')
30-
)
31-
) || (github.repository_owner != 'nervosnetwork')
25+
github.event_name != 'push' ||
26+
( github.event_name == 'push' &&
27+
( github.ref == 'refs/heads/master' ||
28+
(github.ref == 'refs/heads/develop' && startsWith(github.event.head_commit.message, 'Merge pull request #')) ||
29+
startsWith(github.ref, 'refs/heads/rc/')
30+
)
31+
) || (github.repository_owner != 'nervosnetwork')
3232
runs-on: ubuntu-20.04
3333
outputs:
3434
os_skip: ${{ steps.prologue.outputs.os_skip }}
3535
job_skip: ${{ steps.prologue.outputs.job_skip }}
3636
runner_label: ${{ steps.prologue.outputs.runner_label }}
3737
steps:
38-
- uses: actions/checkout@v3
39-
- name: prologue
40-
id: prologue
41-
uses: ./.github/actions/ci_prologue
42-
with:
43-
GITHUB_EVENT_NAME: ${{ github.event_name }}
44-
COMMIT_MESSAGE: "${{github.event.head_commit.message}}"
45-
PR_COMMONS_BODY: "${{ github.event.pull_request.body }}"
46-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
47-
LABELS: "${{ toJson(github.event.pull_request.labels.*.name) }}"
48-
GITHUB_REPOSITORY: ${{ github.repository }}
49-
GITHUB_WORKFLOW: ${{ github.workflow }}
38+
- uses: actions/checkout@v3
39+
- name: prologue
40+
id: prologue
41+
uses: ./.github/actions/ci_prologue
42+
with:
43+
GITHUB_EVENT_NAME: ${{ github.event_name }}
44+
COMMIT_MESSAGE: "${{github.event.head_commit.message}}"
45+
PR_COMMONS_BODY: "${{ github.event.pull_request.body }}"
46+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
47+
LABELS: "${{ toJson(github.event.pull_request.labels.*.name) }}"
48+
GITHUB_REPOSITORY: ${{ github.repository }}
49+
GITHUB_WORKFLOW: ${{ github.workflow }}
5050
ci_integration_tests_macos:
5151
name: ci_integration_tests_macos
5252
needs: prologue
5353
timeout-minutes: 140
54-
runs-on: macos-12
54+
runs-on: macos-13
5555
steps:
56-
- uses: actions/checkout@v3
57-
- run: |
58-
if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then
59-
devtools/ci/ci_main.sh
60-
else
61-
echo "skip job"
62-
exit 0
63-
fi
64-
shell: bash
65-
- name: upload log files
66-
if: always()
67-
uses: actions/upload-artifact@v4
68-
with:
69-
name: ${{ runner.os }}_integration.log
70-
path: ${{ env.CKB_INTEGRATION_TEST_TMP }}/integration.log
56+
- uses: actions/checkout@v3
57+
- run: |
58+
if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then
59+
devtools/ci/ci_main.sh
60+
else
61+
echo "skip job"
62+
exit 0
63+
fi
64+
shell: bash
65+
- name: upload log files
66+
if: always()
67+
uses: actions/upload-artifact@v4
68+
with:
69+
name: ${{ runner.os }}_integration.log
70+
path: ${{ env.CKB_INTEGRATION_TEST_TMP }}/integration.log
7171
env:
7272
RUNNER_LABEL: ${{ needs.prologue.outputs.runner_label }}

.github/workflows/ci_linters_macos.yaml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ concurrency:
44
cancel-in-progress: true
55
on:
66
pull_request:
7-
types: [ opened, synchronize, reopened ]
7+
types: [opened, synchronize, reopened]
88
push:
99
branches:
1010
- master
1111
- develop
12-
- 'rc/*'
12+
- "rc/*"
1313
merge_group: {}
1414

1515
env:
@@ -20,45 +20,45 @@ jobs:
2020
prologue:
2121
name: prologue
2222
if: |
23-
github.event_name != 'push' ||
24-
( github.event_name == 'push' &&
25-
( github.ref == 'refs/heads/master' ||
26-
(github.ref == 'refs/heads/develop' && startsWith(github.event.head_commit.message, 'Merge pull request #')) ||
27-
startsWith(github.ref, 'refs/heads/rc/')
28-
)
29-
) || (github.repository_owner != 'nervosnetwork')
23+
github.event_name != 'push' ||
24+
( github.event_name == 'push' &&
25+
( github.ref == 'refs/heads/master' ||
26+
(github.ref == 'refs/heads/develop' && startsWith(github.event.head_commit.message, 'Merge pull request #')) ||
27+
startsWith(github.ref, 'refs/heads/rc/')
28+
)
29+
) || (github.repository_owner != 'nervosnetwork')
3030
runs-on: ubuntu-20.04
3131
outputs:
3232
os_skip: ${{ steps.prologue.outputs.os_skip }}
3333
job_skip: ${{ steps.prologue.outputs.job_skip }}
3434
runner_label: ${{ steps.prologue.outputs.runner_label }}
3535
steps:
36-
- uses: actions/checkout@v3
37-
- name: prologue
38-
id: prologue
39-
uses: ./.github/actions/ci_prologue
40-
with:
41-
GITHUB_EVENT_NAME: ${{ github.event_name }}
42-
COMMIT_MESSAGE: "${{github.event.head_commit.message}}"
43-
PR_COMMONS_BODY: "${{ github.event.pull_request.body }}"
44-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
45-
LABELS: "${{ toJson(github.event.pull_request.labels.*.name) }}"
46-
GITHUB_REPOSITORY: ${{ github.repository }}
47-
GITHUB_WORKFLOW: ${{ github.workflow }}
36+
- uses: actions/checkout@v3
37+
- name: prologue
38+
id: prologue
39+
uses: ./.github/actions/ci_prologue
40+
with:
41+
GITHUB_EVENT_NAME: ${{ github.event_name }}
42+
COMMIT_MESSAGE: "${{github.event.head_commit.message}}"
43+
PR_COMMONS_BODY: "${{ github.event.pull_request.body }}"
44+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
45+
LABELS: "${{ toJson(github.event.pull_request.labels.*.name) }}"
46+
GITHUB_REPOSITORY: ${{ github.repository }}
47+
GITHUB_WORKFLOW: ${{ github.workflow }}
4848
ci_linters_macos:
4949
name: ci_linters_macos
5050
needs: prologue
51-
runs-on: macos-12
51+
runs-on: macos-13
5252
steps:
53-
- uses: actions/checkout@v3
54-
- run: |
55-
brew install grep gnu-sed
56-
if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then
57-
devtools/ci/ci_main.sh
58-
else
59-
echo "skip job"
60-
exit 0
61-
fi
62-
shell: bash
53+
- uses: actions/checkout@v3
54+
- run: |
55+
brew install grep gnu-sed
56+
if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then
57+
devtools/ci/ci_main.sh
58+
else
59+
echo "skip job"
60+
exit 0
61+
fi
62+
shell: bash
6363
env:
6464
RUNNER_LABEL: ${{ needs.prologue.outputs.runner_label }}

.github/workflows/ci_quick_checks_macos.yaml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ concurrency:
44
cancel-in-progress: true
55
on:
66
pull_request:
7-
types: [ opened, synchronize, reopened ]
7+
types: [opened, synchronize, reopened]
88
push:
99
branches:
1010
- master
1111
- develop
12-
- 'rc/*'
12+
- "rc/*"
1313
merge_group: {}
1414

1515
env:
@@ -20,45 +20,45 @@ jobs:
2020
prologue:
2121
name: prologue
2222
if: |
23-
github.event_name != 'push' ||
24-
( github.event_name == 'push' &&
25-
( github.ref == 'refs/heads/master' ||
26-
(github.ref == 'refs/heads/develop' && startsWith(github.event.head_commit.message, 'Merge pull request #')) ||
27-
startsWith(github.ref, 'refs/heads/rc/')
28-
)
29-
) || (github.repository_owner != 'nervosnetwork')
23+
github.event_name != 'push' ||
24+
( github.event_name == 'push' &&
25+
( github.ref == 'refs/heads/master' ||
26+
(github.ref == 'refs/heads/develop' && startsWith(github.event.head_commit.message, 'Merge pull request #')) ||
27+
startsWith(github.ref, 'refs/heads/rc/')
28+
)
29+
) || (github.repository_owner != 'nervosnetwork')
3030
runs-on: ubuntu-20.04
3131
outputs:
3232
os_skip: ${{ steps.prologue.outputs.os_skip }}
3333
job_skip: ${{ steps.prologue.outputs.job_skip }}
3434
runner_label: ${{ steps.prologue.outputs.runner_label }}
3535
steps:
36-
- uses: actions/checkout@v3
37-
- name: prologue
38-
id: prologue
39-
uses: ./.github/actions/ci_prologue
40-
with:
41-
GITHUB_EVENT_NAME: ${{ github.event_name }}
42-
COMMIT_MESSAGE: "${{github.event.head_commit.message}}"
43-
PR_COMMONS_BODY: "${{ github.event.pull_request.body }}"
44-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
45-
LABELS: "${{ toJson(github.event.pull_request.labels.*.name) }}"
46-
GITHUB_REPOSITORY: ${{ github.repository }}
47-
GITHUB_WORKFLOW: ${{ github.workflow }}
36+
- uses: actions/checkout@v3
37+
- name: prologue
38+
id: prologue
39+
uses: ./.github/actions/ci_prologue
40+
with:
41+
GITHUB_EVENT_NAME: ${{ github.event_name }}
42+
COMMIT_MESSAGE: "${{github.event.head_commit.message}}"
43+
PR_COMMONS_BODY: "${{ github.event.pull_request.body }}"
44+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
45+
LABELS: "${{ toJson(github.event.pull_request.labels.*.name) }}"
46+
GITHUB_REPOSITORY: ${{ github.repository }}
47+
GITHUB_WORKFLOW: ${{ github.workflow }}
4848
ci_quick_checks_macos:
4949
name: ci_quick_checks_macos
5050
needs: prologue
51-
runs-on: macos-12
51+
runs-on: macos-13
5252
steps:
53-
- uses: actions/checkout@v3
54-
- run: |
55-
brew install grep gnu-sed
56-
if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then
57-
devtools/ci/ci_main.sh
58-
else
59-
echo "skip job"
60-
exit 0
61-
fi
62-
shell: bash
53+
- uses: actions/checkout@v3
54+
- run: |
55+
brew install grep gnu-sed
56+
if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then
57+
devtools/ci/ci_main.sh
58+
else
59+
echo "skip job"
60+
exit 0
61+
fi
62+
shell: bash
6363
env:
6464
RUNNER_LABEL: ${{ needs.prologue.outputs.runner_label }}

0 commit comments

Comments
 (0)