19
19
strategy :
20
20
fail-fast : false
21
21
matrix :
22
- features : ["debugmozjs", '""' ]
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 }
@@ -40,21 +40,20 @@ jobs:
40
40
uses :
mozilla-actions/[email protected]
41
41
- name : Build
42
42
run : |
43
- cargo build --verbose --features ${{ matrix.features }}
44
- cargo test --tests --examples --verbose --features ${{ matrix.features }}
43
+ cargo build --verbose --features " ${{ matrix.features }}"
44
+ cargo test --tests --examples --verbose --features " ${{ matrix.features }}"
45
45
46
46
- name : Generate artifact attestation
47
47
uses : actions/attest-build-provenance@v1
48
- if : ${{ inputs.release && matrix.features != 'debugmozjs' }}
48
+ if : ${{ inputs.release }}
49
49
with :
50
- subject-path : ./target/libmozjs-${{ matrix.platform.target }}.tar.gz
50
+ subject-path : ./target/libmozjs-${{ matrix.platform.target }}${{ matrix.features && '-debugmozjs' || '' }} .tar.gz
51
51
52
52
- name : Upload artifact
53
- if : ${{ matrix.features != 'debugmozjs' }}
54
53
uses : actions/upload-artifact@v4
55
54
with :
56
- path : ./target/libmozjs-${{ matrix.platform.target }}.tar.gz
57
- name : libmozjs-${{ matrix.platform.target }}.tar.gz
55
+ path : ./target/libmozjs-${{ matrix.platform.target }}${{ matrix.features && '-debugmozjs' || '' }} .tar.gz
56
+ name : libmozjs-${{ matrix.platform.target }}${{ matrix.features && '-debugmozjs' || '' }} .tar.gz
58
57
59
58
linux :
60
59
env :
65
64
strategy :
66
65
fail-fast : false
67
66
matrix :
68
- features : ["debugmozjs", '""' ]
67
+ features : ["debugmozjs", "" ]
69
68
steps :
70
69
- uses : actions/checkout@v4
71
70
- uses : dtolnay/rust-toolchain@stable
76
75
uses :
mozilla-actions/[email protected]
77
76
- name : Build
78
77
run : |
79
- cargo build --verbose --features ${{ matrix.features }}
80
- cargo test --tests --examples --verbose --features ${{ matrix.features }}
78
+ cargo build --verbose --features " ${{ matrix.features }}"
79
+ cargo test --tests --examples --verbose --features " ${{ matrix.features }}"
81
80
- name : Check wrappers integrity
82
81
# we generate wrappers only without debugmozjs
83
82
if : ${{ matrix.features != 'debugmozjs' }}
@@ -87,23 +86,22 @@ jobs:
87
86
88
87
- name : Generate artifact attestation
89
88
uses : actions/attest-build-provenance@v1
90
- if : ${{ inputs.release && matrix.features != 'debugmozjs' }}
89
+ if : ${{ inputs.release }}
91
90
with :
92
- subject-path : ./target/libmozjs-x86_64-unknown-linux-gnu.tar.gz
91
+ subject-path : ./target/libmozjs-x86_64-unknown-linux-gnu${{ matrix.features && '-debugmozjs' || '' }} .tar.gz
93
92
94
93
- name : Upload artifact
95
- if : ${{ matrix.features != 'debugmozjs' }}
96
94
uses : actions/upload-artifact@v4
97
95
with :
98
- path : ./target/libmozjs-x86_64-unknown-linux-gnu.tar.gz
99
- name : libmozjs-x86_64-unknown-linux-gnu.tar.gz
96
+ path : ./target/libmozjs-x86_64-unknown-linux-gnu${{ matrix.features && '-debugmozjs' || '' }} .tar.gz
97
+ name : libmozjs-x86_64-unknown-linux-gnu${{ matrix.features && '-debugmozjs' || '' }} .tar.gz
100
98
101
99
windows :
102
100
runs-on : windows-latest
103
101
strategy :
104
102
fail-fast : false
105
103
matrix :
106
- features : ["debugmozjs", '""' ]
104
+ features : ["debugmozjs", "" ]
107
105
target : ["x86_64-pc-windows-msvc", "aarch64-pc-windows-msvc"]
108
106
env :
109
107
LINKER : " lld-link.exe"
@@ -126,25 +124,25 @@ jobs:
126
124
- name : Build Windows
127
125
shell : cmd
128
126
run : |
129
- cargo build --verbose --target ${{ matrix.target }} --features ${{ matrix.features }}
127
+ cargo build --verbose --target ${{ matrix.target }} --features " ${{ matrix.features }}"
130
128
- name : Test Windows
131
129
if : ${{ !contains(matrix.target, 'aarch64') }}
132
130
shell : cmd
133
131
run : |
134
- cargo test --tests --examples --verbose --target ${{ matrix.target }} --features ${{ matrix.features }}
132
+ cargo test --tests --examples --verbose --target ${{ matrix.target }} --features " ${{ matrix.features }}"
135
133
136
134
- name : Generate artifact attestation
137
135
uses : actions/attest-build-provenance@v1
138
- if : ${{ inputs.release && !contains(matrix.target, 'aarch64') && matrix.features != 'debugmozjs' }}
136
+ if : ${{ inputs.release && !contains(matrix.target, 'aarch64') }}
139
137
with :
140
- subject-path : ./target/${{ matrix.target }}/libmozjs-x86_64-pc-windows-msvc .tar.gz
138
+ subject-path : ./target/${{ matrix.target }}/libmozjs-${{ matrix.target }}${{ matrix.features && '-debugmozjs' || '' }} .tar.gz
141
139
142
140
- name : Upload artifact
143
- if : ${{ !contains(matrix.target, 'aarch64') && matrix.features != 'debugmozjs' }}
141
+ if : ${{ !contains(matrix.target, 'aarch64') }}
144
142
uses : actions/upload-artifact@v4
145
143
with :
146
- path : ./target/${{ matrix.target }}/libmozjs-x86_64-pc-windows-msvc .tar.gz
147
- name : libmozjs-x86_64-pc-windows-msvc .tar.gz
144
+ path : ./target/${{ matrix.target }}/libmozjs-${{ matrix.target }}${{ matrix.features && '-debugmozjs' || '' }} .tar.gz
145
+ name : libmozjs-${{ matrix.target }}${{ matrix.features && '-debugmozjs' || '' }} .tar.gz
148
146
149
147
android :
150
148
runs-on : ubuntu-latest
0 commit comments