19
19
strategy :
20
20
fail-fast : false
21
21
matrix :
22
- features : ["debugmozjs", "streams" ]
22
+ features : ["debugmozjs", '""' ]
23
23
platform :
24
24
- { target: aarch64-apple-darwin, os: macos-14 }
25
25
- { target: x86_64-apple-darwin, os: macos-13 }
@@ -45,12 +45,12 @@ jobs:
45
45
46
46
- name : Generate artifact attestation
47
47
uses : actions/attest-build-provenance@v1
48
- if : ${{ inputs.release && contains( matrix.features, 'streams') }}
48
+ if : ${{ inputs.release && matrix.features != 'debugmozjs' }}
49
49
with :
50
50
subject-path : ./target/libmozjs-${{ matrix.platform.target }}.tar.gz
51
51
52
52
- name : Upload artifact
53
- if : ${{ contains( matrix.features, 'streams') }}
53
+ if : ${{ matrix.features != 'debugmozjs' }}
54
54
uses : actions/upload-artifact@v4
55
55
with :
56
56
path : ./target/libmozjs-${{ matrix.platform.target }}.tar.gz
65
65
strategy :
66
66
fail-fast : false
67
67
matrix :
68
- features : ["debugmozjs", "streams" ]
68
+ features : ["debugmozjs", '""' ]
69
69
steps :
70
70
- uses : actions/checkout@v4
71
71
- uses : dtolnay/rust-toolchain@stable
@@ -80,19 +80,19 @@ jobs:
80
80
cargo test --tests --examples --verbose --features ${{ matrix.features }}
81
81
- name : Check wrappers integrity
82
82
# we generate wrappers only without debugmozjs
83
- if : ${{ matrix.features == 'streams ' }}
83
+ if : ${{ matrix.features != 'debugmozjs ' }}
84
84
run : |
85
85
bash ./mozjs/src/generate_wrappers.sh
86
86
git diff --quiet --exit-code
87
87
88
88
- name : Generate artifact attestation
89
89
uses : actions/attest-build-provenance@v1
90
- if : ${{ inputs.release && contains( matrix.features, 'streams') }}
90
+ if : ${{ inputs.release && matrix.features != 'debugmozjs' }}
91
91
with :
92
92
subject-path : ./target/libmozjs-x86_64-unknown-linux-gnu.tar.gz
93
93
94
94
- name : Upload artifact
95
- if : ${{ contains( matrix.features, 'streams') }}
95
+ if : ${{ matrix.features != 'debugmozjs' }}
96
96
uses : actions/upload-artifact@v4
97
97
with :
98
98
path : ./target/libmozjs-x86_64-unknown-linux-gnu.tar.gz
@@ -103,7 +103,7 @@ jobs:
103
103
strategy :
104
104
fail-fast : false
105
105
matrix :
106
- features : ["debugmozjs", "streams" ]
106
+ features : ["debugmozjs", '""' ]
107
107
target : ["x86_64-pc-windows-msvc", "aarch64-pc-windows-msvc"]
108
108
env :
109
109
LINKER : " lld-link.exe"
@@ -135,12 +135,12 @@ jobs:
135
135
136
136
- name : Generate artifact attestation
137
137
uses : actions/attest-build-provenance@v1
138
- if : ${{ inputs.release && !contains(matrix.target, 'aarch64') && contains( matrix.features, 'streams') }}
138
+ if : ${{ inputs.release && !contains(matrix.target, 'aarch64') && matrix.features != 'debugmozjs' }}
139
139
with :
140
140
subject-path : ./target/${{ matrix.target }}/libmozjs-x86_64-pc-windows-msvc.tar.gz
141
141
142
142
- name : Upload artifact
143
- if : ${{ !contains(matrix.target, 'aarch64') && contains( matrix.features, 'streams') }}
143
+ if : ${{ !contains(matrix.target, 'aarch64') && matrix.features != 'debugmozjs' }}
144
144
uses : actions/upload-artifact@v4
145
145
with :
146
146
path : ./target/${{ matrix.target }}/libmozjs-x86_64-pc-windows-msvc.tar.gz
@@ -186,7 +186,7 @@ jobs:
186
186
env :
187
187
OHOS_SDK_NATIVE : ${{ steps.setup_sdk.outputs.ohos_sdk_native }}
188
188
run : |
189
- ./ohos-build cargo build --target="${{ matrix.target }}" --features "streams"
189
+ ./ohos-build cargo build --target="${{ matrix.target }}"
190
190
- name : Generate artifact attestation
191
191
uses : actions/attest-build-provenance@v1
192
192
if : ${{ inputs.release }}
0 commit comments