|
3 | 3 | workflow_dispatch: |
4 | 4 | push: |
5 | 5 | branches: |
6 | | - - "main" |
| 6 | + - "dev" |
7 | 7 | paths-ignore: |
8 | 8 | - "docs/**" |
9 | | - - "**/.gitignore" |
10 | | - - "**/.dockerignore" |
| 9 | + - ".gitignore" |
11 | 10 | - LICENSE |
12 | | - - "**/*.md" |
13 | | - pull_request: |
14 | | - branches: |
15 | | - - "main" |
16 | | - paths-ignore: |
17 | | - - "docs/**" |
18 | | - - "**/.gitignore" |
19 | | - - "**/.dockerignore" |
20 | | - - LICENSE |
21 | | - - "**/*.md" |
| 11 | + - "*.md" |
| 12 | + # pull_request: |
| 13 | + # branches: |
| 14 | + # - "dev" |
| 15 | + # paths-ignore: |
| 16 | + # - "docs/**" |
| 17 | + # - ".gitignore" |
| 18 | + # - LICENSE |
| 19 | + # - "*.md" |
22 | 20 |
|
23 | 21 | env: |
24 | 22 | CARGO_TERM_COLOR: always |
|
38 | 36 | # env: x86_64 |
39 | 37 | - arch: ucrt64-x86_64-windows-gnu |
40 | 38 | os: windows-latest |
41 | | - target: x86_64-pc-windows-gnu |
42 | 39 | msystem: ucrt64 |
43 | 40 | env: ucrt-x86_64 |
44 | 41 |
|
@@ -75,15 +72,18 @@ jobs: |
75 | 72 | if: ${{ !startsWith(github.ref, 'refs/tags/') }} |
76 | 73 | shell: pwsh |
77 | 74 | run: | |
78 | | - $json = curl -s "https://api.github.com/repos/shinchiro/mpv-winbuild-cmake/releases/latest" | ConvertFrom-Json |
79 | | - $asset = $json.assets | Where-Object { $_.name -match "mpv-dev-x86_64-\d{8}-git" } | Select-Object -First 1 |
80 | | - curl -L -o $asset.name $asset.browser_download_url |
81 | | - 7z x -y $asset.name -olibmpv |
82 | | - cp -force libmpv/libmpv.dll.a c:/msys64/${{ matrix.msystem }}/lib/ |
83 | | - cp -force libmpv/libmpv-2.dll c:/msys64/${{ matrix.msystem }}/bin/ |
84 | | - cp -force -recurse libmpv/include/mpv c:/msys64/${{ matrix.msystem }}/include/ |
85 | | -
|
86 | | - - name: Build tsukimi-${{ matrix.target }} |
| 75 | + $api_gh = "https://api.github.com/repos/shinchiro/mpv-winbuild-cmake/releases/latest" |
| 76 | + $json = Invoke-WebRequest $api_gh -MaximumRedirection 0 -ErrorAction Ignore -UseBasicParsing | ConvertFrom-Json |
| 77 | + $filename = $json.assets | where { $_.name -Match "mpv-dev-x86_64-v3" } | Select-Object -ExpandProperty name |
| 78 | + $download_link = $json.assets | where { $_.name -Match "mpv-dev-x86_64-v3" } | Select-Object -ExpandProperty browser_download_url |
| 79 | + Write-Host "Downloading" $filename -ForegroundColor Green |
| 80 | + Invoke-WebRequest -Uri $download_link -UserAgent ([Microsoft.PowerShell.Commands.PSUserAgent]::FireFox) -OutFile $filename |
| 81 | + 7z.exe x $filename -olibmpv |
| 82 | + cp -force libmpv/libmpv.dll.a c:/msys64/${{ matrix.msystem }}/lib |
| 83 | + cp -force libmpv/libmpv-2.dll c:/msys64/${{ matrix.msystem }}/bin |
| 84 | + cp -force -recurse libmpv/include/mpv c:/msys64/${{ matrix.msystem }}/include |
| 85 | +
|
| 86 | + - name: Build tsukimi-${{ matrix.arch }} |
87 | 87 | if: ${{ !startsWith(github.ref, 'refs/tags/') }} |
88 | 88 | shell: msys2 {0} |
89 | 89 | run: | |
@@ -162,10 +162,10 @@ jobs: |
162 | 162 | if: ${{ !startsWith(github.ref, 'refs/tags/') }} |
163 | 163 | uses: actions/upload-artifact@v4 |
164 | 164 | with: |
165 | | - name: tsukimi-${{matrix.target}} |
| 165 | + name: tsukimi-${{matrix.arch}} |
166 | 166 | path: | |
167 | | - artifact/*.exe |
168 | 167 | artifact/*.7z |
| 168 | + artifact/*.exe |
169 | 169 | artifact/*.sha512sum |
170 | 170 | compression-level: 0 |
171 | 171 | retention-days: 3 |
|
0 commit comments