From: Joel Rosdahl Date: Tue, 25 Nov 2025 15:51:19 +0000 (+0100) Subject: ci: Fix paths to release binaries X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91d9621e078f375177638331b9d0139ee1c64ac0;p=thirdparty%2Fccache.git ci: Fix paths to release binaries --- diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 926de33c..c32997e9 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -304,7 +304,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: linux-aarch64-binary - path: install/bin/ccache + path: install/ccache retention-days: 3 build_linux_x86_64_binary: @@ -342,7 +342,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: linux-x86_64-binary - path: install/bin/ccache + path: install/ccache retention-days: 3 build_darwin_binary: @@ -360,7 +360,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: darwin-binary - path: install/bin/ccache + path: install/ccache retention-days: 3 build_windows_binary: @@ -411,7 +411,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: windows-${{ matrix.arch }}-binary - path: install/bin/ccache.exe + path: install/ccache.exe retention-days: 3 windows_tests: diff --git a/ci/build-binary b/ci/build-binary index 2da74555..f519ef67 100755 --- a/ci/build-binary +++ b/ci/build-binary @@ -16,4 +16,5 @@ cmake --build . DESTDIR=$(pwd)/../install cmake --install . --strip cd .. +find install -name 'ccache*' -type f -exec mv '{}' install ';' find install -ls diff --git a/ci/build-darwin-binary b/ci/build-darwin-binary index 2e4e018d..dd66edf2 100755 --- a/ci/build-darwin-binary +++ b/ci/build-darwin-binary @@ -26,8 +26,8 @@ for i in "$@"; do FILES="${FILES} build_$i/ccache" done -mkdir -p install/bin -lipo -create $FILES -output install/bin/ccache -lipo -info install/bin/ccache +mkdir -p install +lipo -create $FILES -output install/ccache +lipo -info install/ccache find install -ls diff --git a/ci/prepare-release b/ci/prepare-release index 58a2091a..0588b23d 100755 --- a/ci/prepare-release +++ b/ci/prepare-release @@ -32,8 +32,8 @@ prepare_posix_binary_release() { chmod +x "${name}/ccache" cp misc/Makefile.posix-binary-release "${name}/Makefile" cp GPL-3.0.txt README.md "${name}" - cp docs/install/share/doc/ccache/* "${name}" - cp docs/install/share/man/man1/ccache.1 "${name}" + cp docs/install/usr/local/share/doc/ccache/* "${name}" + cp docs/install/usr/local/share/man/man1/ccache.1 "${name}" tar -caf "release/${name}.tar.${compression}" "${name}" } @@ -59,7 +59,7 @@ prepare_windows_binary_release() { local name="ccache-${VERSION}-${arch}" mkdir "${name}" cp "${arch}-binary/ccache.exe" "${name}" - cp docs/install/share/doc/ccache/* "${name}" + cp "docs/install/usr/local/share/doc/ccache"/* "${name}" zip -r "release/${name}.zip" "${name}" }