Skip to content

Commit

Permalink
Next Attempt
Browse files Browse the repository at this point in the history
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
  • Loading branch information
hydrusnetwork committed Feb 19, 2024
1 parent 164c3c0 commit 041b48f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 26 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/release_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
-
Expand All @@ -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: |
Expand Down
23 changes: 7 additions & 16 deletions .github/workflows/release_win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -28,25 +28,15 @@ 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: |
7z x mpv-dev-x86_64.7z -ompv
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: |
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit 041b48f

Please sign in to comment.