Skip to content

Commit 2f7597c

Browse files
committed
skip more OpenJ9 roles
1 parent c8a0de2 commit 2f7597c

File tree

3 files changed

+14
-16
lines changed

3 files changed

+14
-16
lines changed

.github/workflows/build_windows.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,7 @@ jobs:
3939
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
4040

4141
- name: Build container image
42-
run: docker build \
43-
-t adoptium.azurecr.io/windows2022_build_image:latest \
44-
--build-arg SOURCE_DIR=. \
45-
-f ansible/docker/Dockerfile.win2022 . \
46-
--output 'type=local,dest=C:\infrastructure'
42+
run: docker build -t adoptium.azurecr.io/windows2022_build_image:latest -f ansible/docker/Dockerfile.win2022 .
4743

4844
- name: Push container image to ACR
4945
if: github.ref == 'refs/heads/master'

ansible/docker/Dockerfile.win2022

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ RUN powershell -Command \
1616
Write-Host 'Checksum verification succeeded!' -ForegroundColor Green; \
1717
}"
1818

19-
# Set up cygwin with ansible as a bootstrap, and add to system default path
20-
RUN setup-x86_64.exe --packages ansible --download --local-install --delete-orphans --site https://mirrors.kernel.org/sourceware/cygwin --local-package-dir c:\cygwin_packages --root C:\cygwin64 --wait --quiet-mode && \
19+
# Set up cygwin with git and ansible as a bootstrap, and add to system default path
20+
RUN setup-x86_64.exe --packages git,ansible --download --local-install --delete-orphans --site https://mirrors.kernel.org/sourceware/cygwin --local-package-dir c:\cygwin_packages --root C:\cygwin64 --wait --quiet-mode && \
21+
c:\cygwin_packages --root C:\cygwin64 --wait --quiet-mode && \
2122
del setup-x86_64.exe && \
2223
setx PATH "c:\cygwin64\bin;%PATH%" && \
2324
mkdir c:\temp
@@ -45,11 +46,12 @@ RUN PowerShell .\ConfigureRemotingForAnsible.ps1 -CertValidityDays 9999 & \
4546
ENV TERM=dumb
4647

4748
RUN net user ansible %PW% /ADD & net localgroup "Administrators" ansible /ADD & net localgroup "Remote Management Users" ansible /ADD && \
49+
C:\cygwin64\bin\git clone https://github.com/sxa/infrastructure -b wind-noant c:/infrastructure && \
4850
sed -i -e 's/hosts: .*/hosts: localhost/' infrastructure/ansible/playbooks/AdoptOpenJDK_Windows_Playbook/main.yml && \
4951
echo localhost ansible_connection=winrm > infrastructure/ansible/hosts && \
5052
cd C:\infrastructure\ansible && \
5153
C:\cygwin64\bin\python3.7m.exe /usr/bin/ansible-playbook -e git_sha=00000000 -e ansible_user=ansible -e ansible_password=%PW% -i hosts \
52-
--skip-tags=adoptopenjdk,reboot,Windows_Updates,NTP_TIME,MSVS_2013,MSVS_2017,MSVS_2019 playbooks/AdoptOpenJDK_Windows_Playbook/main.yml && \
54+
--skip-tags=adoptopenjdk,reboot,Windows_Updates,NTP_TIME,MSVS_2013,Rust,IcedTea-Web playbooks/AdoptOpenJDK_Windows_Playbook/main.yml && \
5355
net user ansible /DELETE
5456

5557
ENTRYPOINT ["C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\Tools\\VsDevCmd.bat", "&&", "powershell.exe", "-NoLogo", "-ExecutionPolicy", "Bypass"]

ansible/playbooks/AdoptOpenJDK_Windows_Playbook/main.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,19 @@
7070
- ANT # Testing
7171
- role: MSVS_2013
7272
when: ansible_architecture == "64-bit"
73-
- role: MSVS_2017 # OpenJ9
74-
when: ansible_architecture == "64-bit"
75-
- role: MSVS_2019 # OpenJ9
76-
tags: MSVS_2019
73+
# - role: MSVS_2017 # OpenJ9
74+
# when: ansible_architecture == "64-bit"
75+
# - role: MSVS_2019 # OpenJ9
76+
# tags: MSVS_2019
7777
- role: MSVS_2022
7878
tags: MSVS_2022
7979
- role: MSVS_2022_REDIST
8080
tags: MSVS_2022_REDIST
81-
- NVidia_Cuda_Toolkit # OpenJ9
81+
# - NVidia_Cuda_Toolkit # OpenJ9
8282
- NTP_TIME
83-
- Clang_64bit # OpenJ9
84-
- Clang_32bit # OpenJ9
85-
- nasm # OpenJ9
83+
# - Clang_64bit # OpenJ9
84+
# - Clang_32bit # OpenJ9
85+
# - nasm # OpenJ9
8686
- Rust # IcedTea-Web
8787
- IcedTea-Web # For Jenkins webstart
8888
- WiX # For creating installers

0 commit comments

Comments
 (0)