1818 - x64-windows-static
1919 - x64-windows-static-md
2020 steps :
21- - uses : actions/checkout@v1
22- - uses : actions/cache@v2
21+ - uses : actions/checkout@v4
22+ - uses : actions/cache@v4
2323 with :
2424 path : ./vcpkg
2525 key : vcpkg-openblas
@@ -31,30 +31,20 @@ jobs:
3131 - name : Install OpenBLAS by vcpkg
3232 run : |
3333 ./vcpkg/vcpkg.exe install openblas:${{ matrix.triple }}
34-
35- - uses : actions-rs/cargo@v1
36- name : Test features=system
37- with :
38- command : test
39- args : --features=system --manifest-path=openblas-src/Cargo.toml
34+ - name : Test features=system
35+ run : cargo test --features=system --manifest-path=openblas-src/Cargo.toml
4036 env :
4137 VCPKG_ROOT : ${{ github.workspace }}/vcpkg
4238 if : ${{ matrix.triple == 'x64-windows' }}
4339
44- - uses : actions-rs/cargo@v1
45- name : Test features=system,static
46- with :
47- command : test
48- args : --features=system,static --manifest-path=openblas-src/Cargo.toml
40+ - name : Test features=system,static
41+ run : cargo test --features=system,static --manifest-path=openblas-src/Cargo.toml
4942 env :
5043 VCPKG_ROOT : ${{ github.workspace }}/vcpkg
5144 if : ${{ matrix.triple == 'x64-windows-static-md' }}
5245
53- - uses : actions-rs/cargo@v1
54- name : Test features=system,static with crt-static
55- with :
56- command : test
57- args : --features=system,static --manifest-path=openblas-src/Cargo.toml
46+ - name : Test features=system,static with crt-static
47+ run : cargo test --features=system,static --manifest-path=openblas-src/Cargo.toml
5848 env :
5949 VCPKG_ROOT : ${{ github.workspace }}/vcpkg
6050 RUSTFLAGS : " -C target-feature=+crt-static"
@@ -70,21 +60,17 @@ jobs:
7060 - static
7161 - system
7262 steps :
73- - uses : actions/checkout@v1
63+ - uses : actions/checkout@v4
7464 with :
7565 submodules : " recursive"
7666 - name : Install OpenBLAS by homebrew
7767 run : |
7868 brew install openblas
7969 if : ${{ contains(matrix.feature, 'system') }}
80- - uses : actions-rs/cargo@v1
81- with :
82- command : test
83- args : >
84- --features=${{ matrix.feature }}
85- --manifest-path=openblas-src/Cargo.toml
70+ - name : Test features=${{ matrix.feature }}
71+ run : cargo test --features=${{ matrix.feature }} --manifest-path=openblas-src/Cargo.toml
8672
87- linux :
73+ x86_64-unknown- linux-gnu :
8874 runs-on : ubuntu-22.04
8975 container :
9076 image : rust
9682 - static
9783 - system
9884 steps :
99- - uses : actions/checkout@v1
85+ - uses : actions/checkout@v4
10086 with :
10187 submodules : " recursive"
10288 - name : Install gfortran by apt
@@ -108,9 +94,31 @@ jobs:
10894 apt update
10995 apt install -y libopenblas-dev
11096 if : ${{ contains(matrix.feature, 'system') }}
111- - uses : actions-rs/cargo@v1
97+ - name : Test features=${{ matrix.feature }}
98+ run : cargo test --features=${{ matrix.feature }} --manifest-path=openblas-src/Cargo.toml
99+
100+ cross :
101+ name : ${{matrix.target}} (${{matrix.feature}})
102+ runs-on : ubuntu-latest
103+ strategy :
104+ fail-fast : false
105+ matrix :
106+ feature :
107+ - " "
108+ - static
109+ - system
110+ target :
111+ - aarch64-unknown-linux-gnu
112+ - armv7-unknown-linux-gnueabihf
113+ steps :
114+ - uses : actions/checkout@v4
115+ - name : Install toolchain
116+ uses : dtolnay/rust-toolchain@stable
117+ with :
118+ target : ${{matrix.target}}
119+ - name : Install Cross
120+ uses : taiki-e/install-action@v2
112121 with :
113- command : test
114- args : >
115- --features=${{ matrix.feature }}
116- --manifest-path=openblas-src/Cargo.toml
122+ tool : cross
123+ - name : Test features=${{ matrix.feature }}
124+ run : cross test --target ${{matrix.target}} --features=${{ matrix.feature }} --manifest-path=openblas-src/Cargo.toml
0 commit comments