Skip to content

Commit

Permalink
platform: move builds and releases to Windows
Browse files Browse the repository at this point in the history
Switch the GitHub Actions workflows to run on Windows instead of Ubuntu. This includes
the build, build-pr, and publish workflows, as well as the release job. Additionally,
update the gradle and gradlew.bat scripts for consistency with the new platform.
  • Loading branch information
cnlimiter committed Aug 13, 2024
1 parent bcedee0 commit 587dd56
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
jobs:
build:
name: 'Build PR'
runs-on: ubuntu-latest
runs-on: windows-latest
strategy:
matrix:
loader: [ 'Forge', 'Fabric' ]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ permissions:
jobs:
build:
name: 'Build'
runs-on: ubuntu-latest
runs-on: windows-latest
strategy:
matrix:
loader: [ 'Forge', 'Fabric' ]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ permissions:
jobs:
build:
name: 'Build'
runs-on: ubuntu-latest
runs-on: windows-latest
strategy:
matrix:
loader: [ 'Forge', 'Fabric' ]
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:

publish:
name: 'Publish'
runs-on: ubuntu-latest
runs-on: windows-latest

needs: [build]

Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:

release:
name: 'Create release'
runs-on: ubuntu-latest
runs-on: windows-latest

needs: [build, publish]

Expand Down
2 changes: 1 addition & 1 deletion gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -246,4 +246,4 @@ eval "set -- $(
tr '\n' ' '
)" '"$@"'

exec "$JAVACMD" "$@"
exec "$JAVACMD" "$@"
22 changes: 11 additions & 11 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2

goto fail

Expand All @@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto execute

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2

goto fail

Expand Down Expand Up @@ -89,4 +89,4 @@ exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal

:omega
:omega

0 comments on commit 587dd56

Please sign in to comment.