Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 77ce473

Browse files
committedAug 12, 2022
Push package from GitHub Actions
From rust-math/intel-mkl-src#85
1 parent 568bfd1 commit 77ce473

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
 

‎.github/workflows/pack.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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

0 commit comments

Comments
 (0)
Please sign in to comment.