Skip to content

Commit

Permalink
[enhancement] Store windows basekit with symlink-preserving compressi…
Browse files Browse the repository at this point in the history
…on for nightly-build (#2938)

* Update nightly-build.yml

* Update nightly-build.yml

* Update nightly-build.yml

* Update nightly-build.yml

* Update nightly-build.yml

* Update nightly-build.yml

* Update nightly-build.yml

* Update nightly-build.yml

* Update nightly-build.yml
  • Loading branch information
icfaust authored Oct 17, 2024
1 parent e93063f commit ce6bc85
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
source /opt/intel/oneapi/compiler/latest/env/vars.sh
.ci/scripts/build.sh --compiler icx --optimizations avx2 --target onedal
- name: Archive build
uses: actions/upload-artifact@v4.4.0
uses: actions/upload-artifact@v4
with:
name: __release_lnx
path: ./__release_lnx
Expand Down Expand Up @@ -104,22 +104,26 @@ jobs:
call .\oneapi\setvars.bat
call .\oneapi\compiler\latest\bin\sycl-ls.exe
call .\.ci\scripts\build.bat onedal_dpc vc avx2
- name: Compress Intel BaseKit
shell: cmd
run: |
# change absolute symlinks to relative symlinks for reuse (fix issue in Intel BaseKit)
# iterate through all dirs in basekit (%%s), use dir to find the symlink target for symlinks named 'latest' (%%H)
# delete the symlink, and make a new symlink using the last foldername (%%~nxH) in a relative fashion
for /D %%s in (.\oneapi\*) do for /f "tokens=2 delims=[]" %%H in ('dir /al %%s\ ^| findstr /i /c:"latest"') do rmdir %%s\latest & mklink /D %%s\latest .\%%~nxH
tar -cvzf oneapi.tar.gz .\oneapi
- name: Archive build
uses: actions/upload-artifact@v4.4.0
uses: actions/upload-artifact@v4
with:
name: __release_win
path: .\__release_win_vc
- name: Compress DPC++
shell: cmd
run: |
tar -cvzf icx.zip .\oneapi
- name: Archive DPC++
uses: actions/[email protected]
path: .\__release_win
- name: Archive Intel BaseKit
uses: actions/upload-artifact@v4
with:
name: icx_compiler
path: .\icx.zip
name: intel_oneapi_basekit
path: .\oneapi.tar.gz
- name: Archive Intel OpenCL CPU runtime
uses: actions/upload-artifact@v4.4.0
uses: actions/upload-artifact@v4
with:
name: opencl_rt_installer
path: .\opencl_rt.msi

0 comments on commit ce6bc85

Please sign in to comment.