File tree Expand file tree Collapse file tree 7 files changed +1240
-0
lines changed Expand file tree Collapse file tree 7 files changed +1240
-0
lines changed Original file line number Diff line number Diff line change
1
+ Cargo.lock linguist-generated =true
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
+ - uses : actions-rs/cargo@v1
23
+ with :
24
+ command : install
25
+ args : ocipkg-cli --version=0.2.3
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
+
34
+ - name : Install Intel MKL
35
+ run : |
36
+ apt update
37
+ apt install -y cpio
38
+ curl -sfLO http://registrationcenter-download.intel.com/akdlm/irc_nas/tec/16533/l_mkl_2020.1.217.tgz
39
+ tar xf l_mkl_2020.1.217.tgz
40
+ cd l_mkl_2020.1.217
41
+ ./install.sh -s ../silent.cfg
42
+
43
+ - name : Create oci-archive using intel-mkl-pack
44
+ uses : actions-rs/cargo@v1
45
+ with :
46
+ command : run
47
+ args : --release
48
+
49
+ - name : Push oci-archives
50
+ if : github.event_name != 'pull_request'
51
+ run : >-
52
+ for ar in $(find . -name "mkl-*-*-*.tar"); do
53
+ ocipkg push $ar;
54
+ done
Original file line number Diff line number Diff line change
1
+ name : rust
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request : {}
8
+
9
+ jobs :
10
+ check :
11
+ runs-on : ubuntu-22.04
12
+ steps :
13
+ - uses : actions/checkout@v1
14
+ - uses : actions-rs/cargo@v1
15
+ with :
16
+ command : check
17
+
18
+ check-format :
19
+ runs-on : ubuntu-22.04
20
+ steps :
21
+ - uses : actions/checkout@v1
22
+ - uses : actions-rs/cargo@v1
23
+ with :
24
+ command : fmt
25
+ args : -- --check
26
+
27
+ clippy :
28
+ runs-on : ubuntu-22.04
29
+ steps :
30
+ - uses : actions/checkout@v1
31
+ - uses : actions-rs/cargo@v1
32
+ with :
33
+ command : clippy
Original file line number Diff line number Diff line change
1
+ # cargo
2
+ target /
3
+ .cargo- * /
4
+
5
+ # rustfmt
6
+ ** /* .rs.bk
7
+ rusty-tags. *
8
+
9
+ # Generated oci-archives
10
+ * .tar
You can’t perform that action at this time.
0 commit comments