@@ -19,52 +19,69 @@ jobs:
19
19
steps :
20
20
- uses : actions/checkout@v1
21
21
22
- - uses : actions-rs/cargo@v1
23
- with :
24
- command : install
25
- args : ocipkg-cli --version=~0.2
26
- - name : Add path
27
- run : echo "$HOME/.cargo/bin" >> $GITHUB_PATH
28
-
29
- - name : Login to GitHub Container Registry
30
- if : github.event_name != 'pull_request'
31
- run : |
32
- ocipkg login -u ${{ github.repository_owner }} -p ${{ github.token }} https://ghcr.io
33
-
22
+ # Create oci-archive
34
23
- name : Install Intel MKL
35
24
run : |
36
25
apt update
37
26
apt install -y cpio
38
27
./install-mkl.sh
39
-
40
28
- name : Create oci-archive using intel-mkl-pack
41
29
uses : actions-rs/cargo@v1
42
30
with :
43
31
command : run
44
32
args : --release
45
33
34
+ # Deploy to GitHub container reigstry (ghcr.io)
35
+ - name : Install ocipkg-cli
36
+ uses : actions-rs/cargo@v1
37
+ with :
38
+ command : install
39
+ args : ocipkg-cli --version=~0.2
40
+ - name : Add path
41
+ run : echo "$HOME/.cargo/bin" >> $GITHUB_PATH
42
+
43
+ - name : Login to GitHub Container Registry
44
+ run : |
45
+ ocipkg login -u ${{ github.repository_owner }} -p ${{ github.token }} https://ghcr.io
46
+
46
47
- name : Push oci-archives
47
- if : github.event_name != 'pull_request'
48
- run : >-
49
- for ar in $(find . -name " mkl-*-*-* .tar"); do
50
- ocipkg push $ar;
51
- done
48
+ run : |
49
+ ocipkg push mkl-static-lp64-seq.tar
50
+ ocipkg push mkl-static-lp64-iomp .tar
51
+ ocipkg push mkl-static-ilp64-seq.tar
52
+ ocipkg push mkl-static-ilp64-iomp.tar
52
53
53
54
windows :
54
55
runs-on : windows-2022
55
56
steps :
56
57
- uses : actions/checkout@v1
58
+
59
+ # Create oci-archive
57
60
- name : Get MKL using NuGet
58
61
run : |
59
62
nuget install intelmkl.devel.cluster.win-x64 -Version 2022.0.3.171
60
63
nuget install intelmkl.static.cluster.win-x64 -Version 2022.0.3.171
61
- - name : Add DLL runtime path
62
- run : |
63
- echo "${{ github.workspace }}/intelmkl.redist.win-x64.2022.0.3.171/runtimes/win-x64/native" >> $Env:GITHUB_PATH
64
- echo "${{ github.workspace }}/intelopenmp.redist.win.2022.0.0.3663/runtimes/win-x64/native" >> $Env:GITHUB_PATH
65
64
- uses : actions-rs/cargo@v1
66
65
with :
67
66
command : run
68
67
args : --release
69
68
env :
70
69
MKLROOT : ${{ github.workspace }}
70
+
71
+ # Deploy to GitHub container reigstry (ghcr.io)
72
+ - uses : actions-rs/cargo@v1
73
+ name : Install ocipkg-cli
74
+ with :
75
+ command : install
76
+ args : ocipkg-cli --version=~0.2
77
+ - name : Add path
78
+ run : echo "$HOME/.cargo/bin" >> $Env:GITHUB_PATH
79
+ - name : Login to GitHub Container Registry
80
+ run : |
81
+ ocipkg login -u ${{ github.repository_owner }} -p ${{ github.token }} https://ghcr.io
82
+ - name : Push oci-archives
83
+ run : |
84
+ ocipkg push mkl-static-lp64-seq.tar
85
+ ocipkg push mkl-static-lp64-iomp.tar
86
+ ocipkg push mkl-static-ilp64-seq.tar
87
+ ocipkg push mkl-static-ilp64-iomp.tar
0 commit comments