File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : pack
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ tags :
8
+ # tag must be rust_version-mkl_version
9
+ - " *.*.*-*.*"
10
+ pull_request :
11
+ branches :
12
+ - main
13
+
14
+ jobs :
15
+ linux :
16
+ runs-on : ubuntu-22.04
17
+ container :
18
+ image : ghcr.io/rust-math/rust-mkl:1.62.1-2020.1
19
+ steps :
20
+ - uses : actions/checkout@v1
21
+
22
+ - name : Login to GitHub Container Registry
23
+ if : github.event_name != 'pull_request'
24
+ run : |
25
+ ocipkg login -u ${{ github.repository_owner }} -p ${{ github.token }} https://ghcr.io
26
+
27
+ - uses : actions-rs/cargo@v1
28
+ with :
29
+ command : install
30
+ args : ocipkg-cli --version=0.2.3
31
+ - name : Add path
32
+ run : echo "$HOME/.cargo/bin" >> $GITHUB_PATH
33
+
34
+ - name : Create oci-archive using intel-mkl-pack
35
+ uses : actions-rs/cargo@v1
36
+ with :
37
+ command : run
38
+ args : --release
39
+
40
+ - name : Push oci-archives
41
+ if : github.event_name != 'pull_request'
42
+ run : >-
43
+ for ar in $(find . -name "mkl-*-*-*.tar"); do
44
+ ocipkg push $ar;
45
+ done
You can’t perform that action at this time.
0 commit comments