mirror of
https://github.com/kirbylink/mpv-natives
synced 2026-11-24 10:52:27 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user