Skip to content

Bump rust from 1.71.1 to 1.72.0 #52

Bump rust from 1.71.1 to 1.72.0

Bump rust from 1.71.1 to 1.72.0 #52

Workflow file for this run

name: pack
on:
push:
branches:
- main
tags:
# tag must be rust_version-mkl_version
- "*.*.*-*.*"
pull_request:
branches:
- main
jobs:
linux:
runs-on: ubuntu-22.04
container:
image: rust:1.63.0
steps:
- uses: actions/checkout@v1
# Create oci-archive
- name: Install Intel MKL
run: |
apt update
apt install -y cpio
./install-mkl.sh
- name: Create oci-archive using intel-mkl-pack
uses: actions-rs/cargo@v1
with:
command: run
args: --release
# Deploy to GitHub container reigstry (ghcr.io)
- name: Install ocipkg-cli
if: github.event_name != 'pull_request'
uses: actions-rs/cargo@v1
with:
command: install
args: ocipkg-cli --version=~0.2
- name: Add path
if: github.event_name != 'pull_request'
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
run: |
ocipkg login -u ${{ github.repository_owner }} -p ${{ github.token }} https://ghcr.io
- name: Push oci-archives
if: github.event_name != 'pull_request'
run: |
ocipkg push mkl-static-lp64-seq.tar
ocipkg push mkl-static-lp64-iomp.tar
ocipkg push mkl-static-ilp64-seq.tar
ocipkg push mkl-static-ilp64-iomp.tar
windows:
runs-on: windows-2022
steps:
- uses: actions/checkout@v1
# Create oci-archive
- name: Get MKL using NuGet
run: |
nuget install intelmkl.devel.cluster.win-x64 -Version 2022.0.3.171
nuget install intelmkl.static.cluster.win-x64 -Version 2022.0.3.171
- uses: actions-rs/cargo@v1
with:
command: run
args: --release
env:
MKLROOT: ${{ github.workspace }}
- run: cat $HOME/.docker/config.json
# Deploy to GitHub container reigstry (ghcr.io)
- uses: actions-rs/cargo@v1
if: github.event_name != 'pull_request'
name: Install ocipkg-cli
with:
command: install
args: ocipkg-cli --version=~0.2
- name: Add path
if: github.event_name != 'pull_request'
run: echo "$HOME/.cargo/bin" >> $Env:GITHUB_PATH
- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
run: |
ocipkg login -u ${{ github.repository_owner }} -p ${{ github.token }} https://ghcr.io
- name: Push oci-archives
if: github.event_name != 'pull_request'
run: |
ocipkg push mkl-static-lp64-seq.tar
ocipkg push mkl-static-lp64-iomp.tar
ocipkg push mkl-static-ilp64-seq.tar
ocipkg push mkl-static-ilp64-iomp.tar