Skip to content

Commit

Permalink
Cherry pick PR #450: Enable VS 2022 Images to build PS4/5 (#761)
Browse files Browse the repository at this point in the history
b/265873968
b/282188909

(cherry picked from commit 445f6e6)

Co-authored-by: Arjun Menon <[email protected]>
  • Loading branch information
cobalt-github-releaser-bot and arjungm committed Jun 27, 2023
1 parent e71829c commit 11fd543
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion docker-compose-windows-internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ x-common-definitions: &common-definitions
volumes:
- ${COBALT_SRC:-.}:c:/code/
- ${SCCACHE_DIR:-container-sccache}:c:/root/sccache/
cpus: ${DOCKER_CPUS:-12}
cpus: ${DOCKER_CPUS:-20}
mem_limit: ${DOCKER_MEMLIMIT:-100000M}

x-shared-build-env: &shared-build-env
Expand Down Expand Up @@ -142,6 +142,7 @@ services:
environment:
<<: *shared-build-env
PLATFORM: ps4
VISUAL_STUDIO_VERSION: "2022"
image: cobalt-build-ps4
depends_on:
- cobalt-build-vs2022-win-internal
Expand All @@ -157,6 +158,7 @@ services:
environment:
<<: *shared-build-env
PLATFORM: ps5
VISUAL_STUDIO_VERSION: "2022"
image: cobalt-build-ps5
depends_on:
- cobalt-build-vs2022-win-internal
Expand All @@ -173,6 +175,7 @@ services:
<<: *shared-build-env
PLATFORM: xb1
COBALT_CONCURRENT_LINKS: ${COBALT_CONCURRENT_LINKS:-1}
VISUAL_STUDIO_VERSION: "2022"
image: cobalt-build-xb1
depends_on:
- cobalt-build-vs2022-win-internal
Expand All @@ -188,6 +191,7 @@ services:
environment:
<<: *shared-build-env
PLATFORM: nxswitch
VISUAL_STUDIO_VERSION: "2022"
image: cobalt-build-nxswitch
depends_on:
- cobalt-build-vs2022-win-internal
3 changes: 2 additions & 1 deletion docker-compose-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ x-common-definitions: &common-definitions
volumes:
- ${COBALT_SRC:-.}:c:/code/
- ${SCCACHE_DIR:-container-sccache}:c:/root/sccache/
cpus: ${DOCKER_CPUS:-12}
cpus: ${DOCKER_CPUS:-20}
mem_limit: ${DOCKER_MEMLIMIT:-100000M}

x-shared-build-env: &shared-build-env
Expand Down Expand Up @@ -168,6 +168,7 @@ services:
environment:
<<: *shared-build-env
PLATFORM: win-win32
VISUAL_STUDIO_VERSION: "2022"
image: cobalt-build-win32-vs2022

runner-win-win32:
Expand Down
1 change: 1 addition & 0 deletions docker/windows/base/build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ RUN mkdir C:\pip-cache;`
git config --global core.filemode false;`
git config --global core.preloadindex true;`
git config --global core.fscache true;`
git config --global --add safe.directory C:/code;`
# Registry changes to enable long filesystem paths.
reg add 'HKLM\SYSTEM\CurrentControlSet\Control\FileSystem' /v LongPathsEnabled /t REG_DWORD /reg:64 /d 1 /f;`
reg add 'HKLM\SYSTEM\CurrentControlSet\Control\FileSystem' /v LongPathsEnabled /t REG_DWORD /d 1 /f;`
Expand Down

0 comments on commit 11fd543

Please sign in to comment.