File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -43,11 +43,11 @@ jobs:
43
43
echo "CACHE_HIT=true" >> $env:GITHUB_ENV
44
44
}
45
45
46
- - name : Build Image Without Cache
46
+ - name : Build Image
47
47
if : env.CACHE_HIT != 'true'
48
48
shell : pwsh
49
49
run : |
50
- docker build -t app:latest .
50
+ docker build --isolation process --build-arg "IMPL_COMPRESSION_OPTIONS=-T0 --ultra" --build-arg "IMPL_COMPRESSION_LEVEL=22" - t app:latest .
51
51
52
52
- name : Save Docker Image to TAR
53
53
if : env.CACHE_HIT != 'true'
@@ -67,13 +67,18 @@ jobs:
67
67
- name : Run Nano Container
68
68
shell : pwsh
69
69
run : |
70
- docker run -di --name orphan app:latest
70
+ docker run --isolation process - di --name orphan app:latest
71
71
72
72
- name : Inspect Nano Container
73
73
shell : pwsh
74
74
run : |
75
75
docker inspect orphan
76
76
77
+ - name : Nano Container - Unpack Artifacts
78
+ shell : pwsh
79
+ run : |
80
+ docker exec C:\unpack.ps1
81
+
77
82
- name : Nano Container - Configure CMake Project
78
83
shell : pwsh
79
84
run : |
Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ ARG MSVC_VERSION=14.43.34808
27
27
ARG CLANGCL_VERSION=19.1.1
28
28
29
29
ARG IMPL_ARTIFACTS_DIR="C:\a rtifacts"
30
- ARG IMPL_COMPRESSION_ARGS=-T0
30
+ ARG IMPL_COMPRESSION_OPTIONS=-T0
31
+ ARG IMPL_COMPRESSION_LEVEL=3
31
32
32
33
ARG IMPL_NANO_BASE=mcr.microsoft.com/powershell
33
34
ARG IMPL_NANO_TAG=lts-nanoserver-ltsc2022
@@ -187,12 +188,13 @@ COPY --link --from=git ["${IMPL_ARTIFACTS_DIR}", "C:/pack/Git"]
187
188
COPY --link --from=zstd ["${IMPL_ARTIFACTS_DIR}" , "C:/compress" ]
188
189
189
190
ARG ZSTD_VERSION
190
- ARG IMPL_COMPRESSION_ARGS
191
+ ARG IMPL_COMPRESSION_OPTIONS
192
+ ARG IMPL_COMPRESSION_LEVEL
191
193
192
194
WORKDIR C:\p ack
193
195
RUN $dirs = Get-ChildItem -Directory | ForEach-Object { $_.Name }; $dirs; `
194
- tar -cf artifacts.tar @dirs; dir artifacts.tar; `
195
- & "C:\c ompress\z std-v$env:ZSTD_VERSION-win64\z std.exe" $env:IMPL_COMPRESSION_ARGS artifacts.tar; dir artifacts.tar.zst; `
196
+ tar -cf artifacts.tar @dirs; dir artifacts.tar; $compressionOpts = $env:IMPL_COMPRESSION_OPTIONS -split ' ' ; `
197
+ & "C:\c ompress\z std-v$env:ZSTD_VERSION-win64\z std.exe" @compressionOpts artifacts.tar "-$env:IMPL_COMPRESSION_LEVEL" ; dir artifacts.tar.zst; `
196
198
rm artifacts.tar
197
199
198
200
# ---------------- FINAL IMAGE ----------------
You can’t perform that action at this time.
0 commit comments