Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
Chang Liu committed Jan 23, 2025
1 parent 9cb276f commit e164045
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/windows-java-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
build-windows-java:
runs-on: self-hosted-windows
runs-on: windows-2022
steps:
- uses: actions/checkout@v4

Expand All @@ -22,11 +22,18 @@ jobs:
python3 update-nightly-build-version.py
working-directory: ./scripts

- uses: actions/setup-java@v4
with:
distribution: 'oracle'
java-version: '21'
cache: 'gradle'
architecture: 'x64'

- name: Build Java lib for Windows
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
make java NUM_THREADS=48
call "C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
make java NUM_THREADS=8
- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit e164045

Please sign in to comment.