From 2e58be694d278a8730bb08e7bb862a0524096c77 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 6 Oct 2026 14:53:02 +0200 Subject: [PATCH] build: check out mpv-natives before downloading release artifacts actions/checkout runs 'git clean -fdx' on the workspace by default, so when it ran after actions/download-artifact it deleted the freshly downloaded untracked artifacts/ directory. The publish step then failed with 'cp: cannot stat artifacts/mpv-natives-linux-x86_64/libmpv.so'. Swap the two steps so the download runs after the clean. --- .github/workflows/release.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1763cbb..aacbf97 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,16 +37,19 @@ jobs: needs: [build-linux, build-windows, build-macos] runs-on: ubuntu-24.04 steps: - - name: Download platform artifacts - uses: actions/download-artifact@v4 - with: - path: artifacts - + # Check out first: actions/checkout runs `git clean -fdx` on the + # workspace by default, which would delete the untracked artifacts/ + # directory if it ran after the download. - name: Check out mpv-natives (for LICENSE-NOTICE.txt) uses: actions/checkout@v4 with: fetch-depth: 1 + - name: Download platform artifacts + uses: actions/download-artifact@v4 + with: + path: artifacts + - name: Assemble bare release assets run: | # The mpv version comes from each build workflow's top-level