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,22 @@ 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 : Install toolchain
35+ uses : dtolnay/rust-toolchain@stable
36+ - name : Test features=system
37+ run : cargo test --features=system --manifest-path=openblas-src/Cargo.toml
4038 env :
4139 VCPKG_ROOT : ${{ github.workspace }}/vcpkg
4240 if : ${{ matrix.triple == 'x64-windows' }}
4341
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
42+ - name : Test features=system,static
43+ run : cargo test --features=system,static --manifest-path=openblas-src/Cargo.toml
4944 env :
5045 VCPKG_ROOT : ${{ github.workspace }}/vcpkg
5146 if : ${{ matrix.triple == 'x64-windows-static-md' }}
5247
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
48+ - name : Test features=system,static with crt-static
49+ run : cargo test --features=system,static --manifest-path=openblas-src/Cargo.toml
5850 env :
5951 VCPKG_ROOT : ${{ github.workspace }}/vcpkg
6052 RUSTFLAGS : " -C target-feature=+crt-static"
@@ -70,21 +62,19 @@ jobs:
7062 - static
7163 - system
7264 steps :
73- - uses : actions/checkout@v1
65+ - uses : actions/checkout@v4
7466 with :
7567 submodules : " recursive"
7668 - name : Install OpenBLAS by homebrew
7769 run : |
7870 brew install openblas
7971 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
72+ - name : Install toolchain
73+ uses : dtolnay/rust-toolchain@stable
74+ - name : Test features=${{ matrix.feature }}
75+ run : cargo test --features=${{ matrix.feature }} --manifest-path=openblas-src/Cargo.toml
8676
87- linux :
77+ x86_64-unknown- linux-gnu :
8878 runs-on : ubuntu-22.04
8979 container :
9080 image : rust
9686 - static
9787 - system
9888 steps :
99- - uses : actions/checkout@v1
89+ - uses : actions/checkout@v4
10090 with :
10191 submodules : " recursive"
10292 - name : Install gfortran by apt
@@ -108,9 +98,33 @@ jobs:
10898 apt update
10999 apt install -y libopenblas-dev
110100 if : ${{ contains(matrix.feature, 'system') }}
111- - uses : actions-rs/cargo@v1
101+ - name : Install toolchain
102+ uses : dtolnay/rust-toolchain@stable
103+ - name : Test features=${{ matrix.feature }}
104+ run : cargo test --features=${{ matrix.feature }} --manifest-path=openblas-src/Cargo.toml
105+
106+ cross :
107+ name : ${{matrix.target}}
108+ runs-on : ubuntu-latest
109+ strategy :
110+ fail-fast : false
111+ matrix :
112+ feature :
113+ - " "
114+ - static
115+ - system
116+ target :
117+ - aarch64-unknown-linux-gnu
118+ - armv7-unknown-linux-gnueabihf
119+ steps :
120+ - uses : actions/checkout@v4
121+ - name : Install toolchain
122+ uses : dtolnay/rust-toolchain@stable
123+ with :
124+ target : ${{matrix.target}}
125+ - name : Install Cross
126+ uses : taiki-e/install-action@v2
112127 with :
113- command : test
114- args : >
115- --features=${{ matrix.feature }}
116- --manifest-path=openblas-src/Cargo.toml
128+ tool : cross
129+ - name : Test features=${{ matrix.feature }}
130+ run : cross test --target ${{matrix.target}} --features=${{ matrix.feature }} --manifest-path=openblas-src/Cargo.toml
0 commit comments