Skip to content

Commit 7603412

Browse files
committed
Push package from GitHub Actions
From rust-math/intel-mkl-src#85
1 parent 568bfd1 commit 7603412

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/pack.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: intel-mkl-pack
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request: {}
8+
9+
jobs:
10+
linux:
11+
runs-on: ubuntu-22.04
12+
container:
13+
image: ghcr.io/rust-math/rust-mkl:1.62.1-2020.1
14+
steps:
15+
- uses: actions/checkout@v1
16+
17+
- uses: actions-rs/cargo@v1
18+
with:
19+
command: install
20+
args: ocipkg-cli --version=0.2.3
21+
- name: Add path
22+
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
23+
24+
- name: Login to GitHub Container Registry
25+
run: |
26+
ocipkg login -u ${{ github.repository_owner }} -p ${{ github.token }} https://ghcr.io
27+
28+
- name: Create oci-archive using intel-mkl-pack
29+
uses: actions-rs/cargo@v1
30+
with:
31+
command: run
32+
args: --manifest-path=intel-mkl-pack/Cargo.toml --release
33+
34+
- name: Push oci-archives
35+
run: >-
36+
for ar in $(find . -name "mkl-*-*-*.tar"); do
37+
ocipkg push $ar;
38+
done

0 commit comments

Comments
 (0)