Skip to content

Commit edba46d

Browse files
Update main.yml
1 parent 964fbe7 commit edba46d

File tree

1 file changed

+71
-31
lines changed

1 file changed

+71
-31
lines changed

.github/workflows/main.yml

Lines changed: 71 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,78 @@
1-
# name: Set up JBR Workflow
1+
# # name: Set up JBR Workflow
22

3-
# on:\
3+
# # on:\
4+
# # push:
5+
# # branches:
6+
# # - main
7+
8+
# # workflow_dispatch: # Allows manual triggering of the workflow
9+
10+
11+
# # jobs:
12+
# # setup-jbr:
13+
# # runs-on: ${{ matrix.os }}
14+
# # strategy:
15+
# # matrix:
16+
# # os: [ubuntu-latest, macos-latest, windows-latest]
17+
18+
# # steps:
19+
# # - name: Checkout repository
20+
# # uses: actions/checkout@v4
21+
22+
# # - name: Set up JBR
23+
# # uses: actions/setup-java@v4
24+
# # with:
25+
# # distribution: "jetbrains"
26+
# # java-package: "jdk"
27+
# # java-version: "21"
28+
# # check-latest: false
29+
30+
# # - name: Verify Java version
31+
# # run: java -version
32+
33+
# name: Test java Windows zip issue
34+
35+
# on:
436
# push:
537
# branches:
638
# - main
7-
8-
# workflow_dispatch: # Allows manual triggering of the workflow
9-
39+
# workflow_dispatch:
40+
1041

1142
# jobs:
12-
# setup-jbr:
13-
# runs-on: ${{ matrix.os }}
14-
# strategy:
15-
# matrix:
16-
# os: [ubuntu-latest, macos-latest, windows-latest]
17-
43+
# test:
44+
# runs-on: ubuntu-latest
45+
# # runs-on: ${{ matrix.os }}
46+
# # strategy:
47+
# # fail-fast: false
48+
# # matrix:
49+
# # os: [windows-latest, windows-2019]
50+
# # distribution: [ 'jetbrains' , 'adopt', 'zulu', 'temurin', 'corretto', 'liberica', 'oracle', 'microsoft', 'semeru', 'dragonwell', 'sapmachine', graalvm]
51+
1852
# steps:
19-
# - name: Checkout repository
20-
# uses: actions/checkout@v4
53+
# # - name: cache clear
54+
# # run: |
55+
# # mv "${{ runner.tool_cache }}" "${{ runner.tool_cache }}.old"
56+
# # mkdir -p "${{ runner.tool_cache }}"
2157

22-
# - name: Set up JBR
23-
# uses: actions/setup-java@v4
58+
# - name: Checkout code
59+
# uses: actions/checkout@v4
60+
61+
# - name: Set up Java
62+
# uses: priyagupta108/setup-java@jetbrains-fix-test
63+
# # uses: actions/setup-java@v4
64+
2465
# with:
25-
# distribution: "jetbrains"
26-
# java-package: "jdk"
27-
# java-version: "21"
28-
# check-latest: false
66+
# # distribution: ${{ matrix.distribution }}
67+
# distribution: 'jetbrains'
68+
# java-version: '21.0.5-ea'
69+
# check-latest: true
70+
2971

3072
# - name: Verify Java version
3173
# run: java -version
3274

75+
3376
name: Test java Windows zip issue
3477

3578
on:
@@ -41,13 +84,13 @@ on:
4184

4285
jobs:
4386
test:
44-
runs-on: ubuntu-latest
87+
runs-on: [self-hosted, windows10-Enter]
4588
# runs-on: ${{ matrix.os }}
46-
# strategy:
47-
# fail-fast: false
48-
# matrix:
89+
strategy:
90+
fail-fast: false
91+
matrix:
4992
# os: [windows-latest, windows-2019]
50-
# distribution: [ 'jetbrains' , 'adopt', 'zulu', 'temurin', 'corretto', 'liberica', 'oracle', 'microsoft', 'semeru', 'dragonwell', 'sapmachine', graalvm]
93+
distribution: [ 'adopt', 'zulu', 'temurin', 'corretto', 'liberica', 'oracle', 'microsoft', 'semeru', 'dragonwell', 'sapmachine', graalvm]
5194

5295
steps:
5396
# - name: cache clear
@@ -59,14 +102,11 @@ jobs:
59102
uses: actions/checkout@v4
60103

61104
- name: Set up Java
62-
uses: priyagupta108/setup-java@jetbrains-fix-test
63-
# uses: actions/setup-java@v4
64-
105+
# uses: priyagupta108/setup-java@winZip
106+
uses: priyagupta108/setup-java@fix-windows-archive-extraction
65107
with:
66-
# distribution: ${{ matrix.distribution }}
67-
distribution: 'jetbrains'
68-
java-version: '21.0.5-ea'
69-
check-latest: true
108+
distribution: ${{ matrix.distribution }}
109+
java-version: '21'
70110

71111

72112
- name: Verify Java version

0 commit comments

Comments
 (0)