54
54
run : echo '${{ steps.release.outputs.upload_url }}' > artifacts/release-upload-url
55
55
56
56
- name : Save version number to artifact
57
- run : echo '${{ env. VERSION }}' > artifacts/release-version
57
+ run : echo "$ VERSION" > artifacts/release-version
58
58
59
59
- name : Upload artifacts
60
60
uses : actions/upload-artifact@v4
@@ -152,9 +152,9 @@ jobs:
152
152
153
153
- name : Show command used for Cargo
154
154
run : |
155
- echo ' cargo command is: ${{ env. CARGO }}'
156
- echo ' target flag is: ${{ env. TARGET_FLAGS }}'
157
- echo ' target dir is: ${{ env. TARGET_DIR }}'
155
+ echo " cargo command is: $CARGO"
156
+ echo " target flag is: $TARGET_FLAGS"
157
+ echo " target dir is: $TARGET_DIR"
158
158
159
159
- name : Get release download URL
160
160
uses : actions/download-artifact@v4
@@ -168,11 +168,12 @@ jobs:
168
168
echo "VERSION=$(< artifacts/release-version)" >> "$GITHUB_ENV"
169
169
170
170
- name : Build release binary
171
- run : ${{ env.CARGO }} build --verbose --release ${{ env.TARGET_FLAGS }} --no-default-features --features ${{ matrix.feature }}
171
+ run : |
172
+ "$CARGO" build --verbose --release "$TARGET_FLAGS" --no-default-features --features ${{ matrix.feature }}
172
173
173
174
- name : Strip release binary (linux and macos)
174
175
if : matrix.build == 'linux' || matrix.build == 'macos'
175
- run : strip 'target/${{ matrix.target }}/release/ein' 'target/${{ matrix.target }} /release/gix'
176
+ run : strip -- "$TARGET_DIR" /release/{ein, gix}
176
177
177
178
- name : Strip release binary (arm)
178
179
if : matrix.build == 'linux-arm'
@@ -192,13 +193,13 @@ jobs:
192
193
cp {README.md,LICENSE-*,CHANGELOG.md} "$staging/"
193
194
194
195
if [ '${{ matrix.os }}' = 'windows-latest' ]; then
195
- file 'target/${{ matrix.target }}/release/ein.exe' 'target/${{ matrix.target }} /release/gix.exe'
196
- cp 'target/${{ matrix.target }}/release/ein.exe' 'target/${{ matrix.target }} /release/gix.exe' "$staging/"
196
+ file -- "$TARGET_DIR" /release/{ein, gix} .exe
197
+ cp -- "$TARGET_DIR" /release/{ein, gix} .exe "$staging/"
197
198
7z a "$staging.zip" "$staging"
198
199
echo "ASSET=$staging.zip" >> "$GITHUB_ENV"
199
200
else
200
- file 'target/${{ matrix.target }}/release/ein' 'target/${{ matrix.target }} /release/gix'
201
- cp 'target/${{ matrix.target }}/release/ein' 'target/${{ matrix.target }} /release/gix' "$staging/"
201
+ file -- "$TARGET_DIR" /release/{ein, gix}
202
+ cp -- "$TARGET_DIR" /release/{ein, gix} "$staging/"
202
203
tar czf "$staging.tar.gz" "$staging"
203
204
echo "ASSET=$staging.tar.gz" >> "$GITHUB_ENV"
204
205
fi
0 commit comments