Skip to content

Commit da2bf9f

Browse files
committed
Different path
1 parent dcc8251 commit da2bf9f

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

.github/workflows/client.yaml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,20 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v5
1111
- name: Set up jextract
12-
shell: bash
12+
shell: pwsh
1313
run: |
14-
mkdir jextract && cd jextract
15-
curl -L -o jextract.tar.gz https://download.java.net/java/early_access/jextract/25/2/openjdk-25-jextract+2-4_windows-x64_bin.tar.gz
16-
tar xzvf jextract.tar.gz --strip-components=1
17-
echo "$(pwd)" >> $GITHUB_PATH
18-
pwd
19-
echo "a"
20-
ls
21-
echo "a"
22-
ls bin
23-
// D:\a\killscript\killscript\windows_helper
24-
echo "JEXTRACT=$(pwd)" >> $GITHUB_ENV
14+
New-Item -ItemType Directory -Force -Path jextract | Out-Null
15+
Set-Location jextract
16+
17+
Invoke-WebRequest `
18+
-Uri "https://download.java.net/java/early_access/jextract/25/2/openjdk-25-jextract+2-4_windows-x64_bin.tar.gz" `
19+
-OutFile "jextract.tar.gz"
20+
21+
tar -xzvf "jextract.tar.gz" --strip-components=1
22+
23+
$pwdPath = (Get-Location).Path
24+
Add-Content -Path $env:GITHUB_PATH -Value $pwdPath
25+
Add-Content -Path $env:GITHUB_ENV -Value "JEXTRACT=$pwdPath"
2526
- uses: actions/setup-java@v5
2627
with:
2728
distribution: "temurin"

0 commit comments

Comments
 (0)