Skip to content

Commit 28d0643

Browse files
committed
Deploy steps
1 parent f96933e commit 28d0643

File tree

1 file changed

+39
-22
lines changed

1 file changed

+39
-22
lines changed

.github/workflows/pack.yml

Lines changed: 39 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,52 +19,69 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v1
2121

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
3423
- name: Install Intel MKL
3524
run: |
3625
apt update
3726
apt install -y cpio
3827
./install-mkl.sh
39-
4028
- name: Create oci-archive using intel-mkl-pack
4129
uses: actions-rs/cargo@v1
4230
with:
4331
command: run
4432
args: --release
4533

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+
4647
- 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
5253
5354
windows:
5455
runs-on: windows-2022
5556
steps:
5657
- uses: actions/checkout@v1
58+
59+
# Create oci-archive
5760
- name: Get MKL using NuGet
5861
run: |
5962
nuget install intelmkl.devel.cluster.win-x64 -Version 2022.0.3.171
6063
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
6564
- uses: actions-rs/cargo@v1
6665
with:
6766
command: run
6867
args: --release
6968
env:
7069
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

Comments
 (0)