diff --git a/.github/workflows/openblas-build.yml b/.github/workflows/openblas-build.yml index dec7828..1470212 100644 --- a/.github/workflows/openblas-build.yml +++ b/.github/workflows/openblas-build.yml @@ -9,7 +9,7 @@ on: jobs: linux: - runs-on: ubuntu-18.04 + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: @@ -22,20 +22,20 @@ jobs: env: RUST_BACKTRACE: 1 steps: - - uses: actions/checkout@v1 - with: - submodules: 'recursive' - - name: Install gfortran by apt - run: | - apt update - apt install -y gfortran - - name: Common minor tests - uses: actions-rs/cargo@v1 - with: - command: test - args: --manifest-path=openblas-build/Cargo.toml - - name: Build test - uses: actions-rs/cargo@v1 - with: - command: test - args: ${{ matrix.test_target }} --manifest-path=openblas-build/Cargo.toml -- --ignored + - uses: actions/checkout@v1 + with: + submodules: "recursive" + - name: Install gfortran by apt + run: | + apt update + apt install -y gfortran + - name: Common minor tests + uses: actions-rs/cargo@v1 + with: + command: test + args: --manifest-path=openblas-build/Cargo.toml + - name: Build test + uses: actions-rs/cargo@v1 + with: + command: test + args: ${{ matrix.test_target }} --manifest-path=openblas-build/Cargo.toml -- --ignored diff --git a/.github/workflows/openblas-src.yml b/.github/workflows/openblas-src.yml index d45e706..36f77c6 100644 --- a/.github/workflows/openblas-src.yml +++ b/.github/workflows/openblas-src.yml @@ -18,47 +18,47 @@ jobs: - x64-windows-static - x64-windows-static-md steps: - - uses: actions/checkout@v1 - - uses: actions/cache@v2 - with: - path: ./vcpkg - key: vcpkg-openblas - - 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 }} + - uses: actions/checkout@v1 + - uses: actions/cache@v2 + with: + path: ./vcpkg + key: vcpkg-openblas + - 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 }} - - uses: actions-rs/cargo@v1 - name: Test features=system - with: - command: test - args: --features=system --manifest-path=openblas-src/Cargo.toml - env: - VCPKG_ROOT: ${{ github.workspace }}/vcpkg - if: ${{ matrix.triple == 'x64-windows' }} + - uses: actions-rs/cargo@v1 + name: Test features=system + with: + command: test + args: --features=system --manifest-path=openblas-src/Cargo.toml + env: + VCPKG_ROOT: ${{ github.workspace }}/vcpkg + if: ${{ matrix.triple == 'x64-windows' }} - - uses: actions-rs/cargo@v1 - name: Test features=system,static - with: - command: test - args: --features=system,static --manifest-path=openblas-src/Cargo.toml - env: - VCPKG_ROOT: ${{ github.workspace }}/vcpkg - if: ${{ matrix.triple == 'x64-windows-static-md' }} + - uses: actions-rs/cargo@v1 + name: Test features=system,static + with: + command: test + args: --features=system,static --manifest-path=openblas-src/Cargo.toml + env: + VCPKG_ROOT: ${{ github.workspace }}/vcpkg + if: ${{ matrix.triple == 'x64-windows-static-md' }} - - uses: actions-rs/cargo@v1 - name: Test features=system,static with crt-static - with: - command: test - args: --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' }} + - uses: actions-rs/cargo@v1 + name: Test features=system,static with crt-static + with: + command: test + args: --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-11 @@ -70,22 +70,22 @@ jobs: - static - system steps: - - uses: actions/checkout@v1 - with: - submodules: 'recursive' - - name: Install OpenBLAS by homebrew - run: | - brew install openblas - if: ${{ contains(matrix.feature, 'system') }} - - uses: actions-rs/cargo@v1 - with: - command: test - args: > - --features=${{ matrix.feature }} - --manifest-path=openblas-src/Cargo.toml + - uses: actions/checkout@v1 + with: + submodules: "recursive" + - name: Install OpenBLAS by homebrew + run: | + brew install openblas + if: ${{ contains(matrix.feature, 'system') }} + - uses: actions-rs/cargo@v1 + with: + command: test + args: > + --features=${{ matrix.feature }} + --manifest-path=openblas-src/Cargo.toml linux: - runs-on: ubuntu-18.04 + runs-on: ubuntu-22.04 container: image: rust strategy: @@ -96,21 +96,21 @@ jobs: - static - system steps: - - uses: actions/checkout@v1 - with: - submodules: 'recursive' - - name: Install gfortran by apt - run: | - apt update - apt install -y gfortran - - name: Install OpenBLAS by apt - run: | - apt update - apt install -y libopenblas-dev - if: ${{ contains(matrix.feature, 'system') }} - - uses: actions-rs/cargo@v1 - with: - command: test - args: > - --features=${{ matrix.feature }} - --manifest-path=openblas-src/Cargo.toml + - uses: actions/checkout@v1 + with: + submodules: "recursive" + - name: Install gfortran by apt + run: | + apt update + apt install -y gfortran + - name: Install OpenBLAS by apt + run: | + apt update + apt install -y libopenblas-dev + if: ${{ contains(matrix.feature, 'system') }} + - uses: actions-rs/cargo@v1 + with: + command: test + args: > + --features=${{ matrix.feature }} + --manifest-path=openblas-src/Cargo.toml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 04c4cd5..5d1a2ef 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -10,18 +10,18 @@ jobs: check-format: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v1 - - uses: actions-rs/cargo@v1 - with: - command: fmt - args: -- --check + - uses: actions/checkout@v1 + - uses: actions-rs/cargo@v1 + with: + command: fmt + args: -- --check clippy: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v1 - with: - submodules: 'true' - - uses: actions-rs/cargo@v1 - with: - command: clippy + - uses: actions/checkout@v1 + with: + submodules: "true" + - uses: actions-rs/cargo@v1 + with: + command: clippy