@@ -148,14 +148,15 @@ jobs:
148148 - name : Build mimalloc object
149149 run : |
150150 set -euxo pipefail
151- curl -sSfL "https://github.com/microsoft/mimalloc/archive/refs/tags/v${MIMALLOC_VERSION}.tar.gz" | tar xz
151+ curl -sSfL "https://github.com/microsoft/mimalloc/archive/refs/tags/v${{ MIMALLOC_VERSION } }.tar.gz" | tar xz
152152 export CC=clang
153- cmake -S "mimalloc-${MIMALLOC_VERSION}" -B mimalloc-build \
153+ cmake -S "mimalloc-${{ MIMALLOC_VERSION } }" -B mimalloc-build \
154154 -DMI_BUILD_SHARED=OFF \
155155 -DMI_BUILD_STATIC=ON \
156156 -DMI_BUILD_OBJECT=OFF \
157157 -DCMAKE_BUILD_TYPE=Release
158158 cmake --build mimalloc-build --target mimalloc-static
159+ cp mimalloc-${{ MIMALLOC_VERSION }}/LICENSE LICENSE.mimalloc
159160 - name : Build static binary
160161 run : |
161162 # To improve performance with musl, increase the stack size to 512KiB and
@@ -169,15 +170,16 @@ jobs:
169170 -Xlinker --whole-archive \
170171 -Xlinker ./mimalloc-build/libmimalloc.a \
171172 -Xlinker --no-whole-archive
173+ cp "${{ env.BINARY_PATH }}" .
172174 - name : Strip binary
173- run : strip -s "$BINARY_PATH"
175+ run : strip -s swiftlint
174176 - name : Upload artifact
175177 uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
176178 with :
177179 name : ${{ matrix.artifact_name }}
178180 path : |
179- ${{ env.BINARY_PATH }}
180- mimalloc-build/ LICENSE
181+ swiftlint
182+ LICENSE.mimalloc
181183
182184 build-macos :
183185 name : Build macOS Binaries
@@ -235,7 +237,7 @@ jobs:
235237 mv -f swiftlint-static-arm64/swiftlint swiftlint_static_arm64
236238
237239 # Just pick one of the licenses.
238- mv -f swiftlint-static-amd64/LICENSE LICENSE .mimalloc
240+ mv -f swiftlint-static-amd64/LICENSE.mimalloc .
239241 - name : Make binaries executable
240242 run : chmod +x swiftlint*
241243 - name : Create artifacts
0 commit comments