@@ -31,31 +31,21 @@ jobs:
3131 TARGET : x86_64-unknown-linux-gnu
3232
3333 steps :
34- - uses : actions/checkout@v2
35-
36- - uses : actions-rs/toolchain@v1
34+ - uses : actions/checkout@v3
35+ - uses : dtolnay/rust-toolchain@master
3736 with :
38- profile : minimal
3937 toolchain : ${{ matrix.rust }}
4038 target : ${{ matrix.TARGET }}
41- override : true
4239
4340 - name : Install armv7 libraries
4441 if : ${{ matrix.TARGET == 'armv7-unknown-linux-gnueabihf' }}
45- run : sudo apt-get install -y libc6-armhf-cross libc6-dev-armhf-cross gcc-arm-linux-gnueabihf
42+ run : sudo apt-get update && sudo apt-get install -y libc6-armhf-cross libc6-dev-armhf-cross gcc-arm-linux-gnueabihf
4643
47- - uses : actions-rs/ cargo@v1
44+ - run : cargo test --target=${{ matrix.TARGET }}
4845 if : ${{ matrix.TARGET != 'armv7-unknown-linux-gnueabihf' }}
49- with :
50- command : test
51- args : --target=${{ matrix.TARGET }}
52-
5346
54- - uses : actions-rs/ cargo@v1
47+ - run : cargo build --target=${{ matrix.TARGET }}
5548 if : ${{ matrix.TARGET == 'armv7-unknown-linux-gnueabihf' }}
56- with :
57- command : build
58- args : --target=${{ matrix.TARGET }}
5949
6050 ci-macos :
6151 name : CI-macOS
@@ -67,16 +57,10 @@ jobs:
6757 TARGET : [x86_64-apple-darwin]
6858
6959 steps :
70- - uses : actions/checkout@v2
71-
72- - uses : actions-rs/toolchain@v1
60+ - uses : actions/checkout@v3
61+ - uses : dtolnay/rust-toolchain@master
7362 with :
74- profile : minimal
7563 toolchain : ${{ matrix.rust }}
7664 target : ${{ matrix.TARGET }}
77- override : true
7865
79- - uses : actions-rs/cargo@v1
80- with :
81- command : build
82- args : --target=${{ matrix.TARGET }}
66+ - run : cargo build --target=${{ matrix.TARGET }}
0 commit comments