Next Attempt

Hopefully fixes the Windows version environment variable gubbins with Powershell syntax, and replaces old Node 16 commands with newer versions or curl/Invoke-BBQ

The Node16 action-gh-release should be updated fairly soon
This commit is contained in:
Hydrus Network Developer 2024-02-19 13:40:45 -06:00
parent 164c3c0bd1
commit 041b48f835
No known key found for this signature in database
GPG Key ID: 76249F053212133C
3 changed files with 12 additions and 26 deletions

View File

@ -10,12 +10,12 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: hydrus
-
name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: x64

View File

@ -10,10 +10,10 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
-
name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'
-
@ -28,12 +28,7 @@ jobs:
run: python3 -m pip install pyoxidizer==0.24.0
-
name: Download ffmpeg
uses: carlosperate/download-file-action@v2
id: download_ffmpeg
with:
file-url: 'https://evermeet.cx/ffmpeg/getrelease/ffmpeg/7z'
file-name: 'ffmpeg-macos.7z'
location: '.'
run: curl -o ffmpeg-macos.7z https://evermeet.cx/ffmpeg/getrelease/ffmpeg/7z
-
name: Process ffmpeg
run: |

View File

@ -10,12 +10,12 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: hydrus
-
name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: x64
@ -28,12 +28,7 @@ jobs:
working-directory: hydrus
-
name: Download mpv-dev
uses: carlosperate/download-file-action@v2
id: download_mpv
with:
file-url: 'https://sourceforge.net/projects/mpv-player-windows/files/libmpv/mpv-dev-x86_64-20230212-git-a40958c.7z'
file-name: 'mpv-dev-x86_64.7z'
location: '.'
run: Invoke-WebRequest -Uri "https://sourceforge.net/projects/mpv-player-windows/files/libmpv/mpv-dev-x86_64-20230212-git-a40958c.7z" -OutFile "mpv-dev-x86_64.7z"
-
name: Process mpv-dev
run: |
@ -41,12 +36,7 @@ jobs:
move mpv\libmpv-2.dll hydrus\mpv-2.dll
-
name: Download ffmpeg
uses: carlosperate/download-file-action@v2
id: download_ffmpeg
with:
file-url: 'https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full.7z'
file-name: 'ffmpeg-release-full.7z'
location: '.'
run: Invoke-WebRequest -Uri "https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full.7z" -OutFile "ffmpeg-release-full.7z"
-
name: Process ffmpeg
run: |
@ -80,8 +70,9 @@ jobs:
name: Extract Version Metadata
id: meta
run: |
echo "version=${{ github.ref_name }}" >> %GITHUB_ENV%
echo "version_short=%version:~1%" >> %GITHUB_ENV%
echo "version=${{ github.ref_name }}" >> $env:GITHUB_ENV
$vs = "${{ env.version }}".Substring(1)
echo "version_short=$vs" >> $env:GITHUB_ENV
-
name: Rename Files
run: |