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.
This commit is contained in:
david
2026-10-06 14:53:02 +02:00
parent 154fd36257
commit 2e58be694d
+8 -5
View File
@@ -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