chore: Release 0.10.11 #169
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: openblas-src | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'openblas-build/**' | |
- 'openblas-src/**' | |
- '.github/workflows/openblas-src.yml' | |
- '*.toml' | |
pull_request: | |
paths: | |
- 'openblas-build/**' | |
- 'openblas-src/**' | |
- '.github/workflows/openblas-src.yml' | |
- '*.toml' | |
workflow_dispatch: {} | |
jobs: | |
windows-msvc: | |
runs-on: windows-2022 | |
strategy: | |
fail-fast: false | |
matrix: | |
triple: | |
- x64-windows | |
- x64-windows-static | |
- x64-windows-static-md | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: ./vcpkg | |
key: vcpkg-openblas-${{ matrix.triple }} | |
- name: Install vcpkg | |
run: | | |
git clone https://github.com/Microsoft/vcpkg.git --depth 1 | |
cd vcpkg | |
./bootstrap-vcpkg.bat | |
- name: Install OpenBLAS by vcpkg | |
run: | | |
./vcpkg/vcpkg.exe install openblas:${{ matrix.triple }} | |
- name: Test features=system | |
run: cargo test --features=system --manifest-path=openblas-src/Cargo.toml | |
env: | |
VCPKG_ROOT: ${{ github.workspace }}/vcpkg | |
if: ${{ matrix.triple == 'x64-windows' }} | |
- name: Test features=system,static | |
run: cargo test --features=system,static --manifest-path=openblas-src/Cargo.toml | |
env: | |
VCPKG_ROOT: ${{ github.workspace }}/vcpkg | |
if: ${{ matrix.triple == 'x64-windows-static-md' }} | |
- name: Test features=system,static with crt-static | |
run: cargo test --features=system,static --manifest-path=openblas-src/Cargo.toml | |
env: | |
VCPKG_ROOT: ${{ github.workspace }}/vcpkg | |
RUSTFLAGS: "-C target-feature=+crt-static" | |
if: ${{ matrix.triple == 'x64-windows-static' }} | |
macos: | |
runs-on: macos-14 | |
strategy: | |
fail-fast: false | |
matrix: | |
feature: | |
- "" | |
- static | |
- system | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: "recursive" | |
- name: Install OpenBLAS by homebrew | |
run: | | |
brew install openblas | |
if: ${{ contains(matrix.feature, 'system') }} | |
- name: Test features=${{ matrix.feature }} | |
run: cargo test --features=${{ matrix.feature }} --manifest-path=openblas-src/Cargo.toml | |
x86_64-unknown-linux-gnu: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
feature: | |
- "" | |
- static | |
- system | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: "recursive" | |
- name: Install gfortran by apt | |
run: | | |
sudo apt update | |
sudo apt install -y gfortran | |
- name: Install OpenBLAS by apt | |
run: | | |
sudo apt update | |
sudo apt install -y libopenblas-dev | |
if: ${{ contains(matrix.feature, 'system') }} | |
- name: Test features=${{ matrix.feature }} | |
run: cargo test --features=${{ matrix.feature }} --manifest-path=openblas-src/Cargo.toml | |
cross: | |
name: ${{matrix.target}} (${{matrix.feature}}) | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
feature: | |
- "" | |
- static | |
- system | |
target: | |
- aarch64-unknown-linux-gnu | |
- armv7-unknown-linux-gnueabihf | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
target: ${{matrix.target}} | |
- name: Install Cross | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: cross | |
- name: Test features=${{ matrix.feature }} | |
run: cross test --target ${{matrix.target}} --features=${{ matrix.feature }} --manifest-path=openblas-src/Cargo.toml | |
msrv-test: | |
name: MSRV test | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install OpenBLAS by apt | |
run: | | |
sudo apt update | |
sudo apt install -y libopenblas-dev | |
- name: Install toolchain | |
uses: dtolnay/[email protected] | |
- name: cargo test | |
run: cargo check --manifest-path=openblas-src/Cargo.toml --features=system |