ci: split test step, publish core dumps on macos

This commit is contained in:
Joonas Koivunen 2020-06-18 20:01:16 +03:00
parent 0bd822a3de
commit 7616cbf333

View File

@ -119,10 +119,28 @@ jobs:
run: cargo build --locked --workspace --exclude ipfs-http --target ${{ matrix.platform.target }}
# exclude http on other cross compilation targets because openssl
- name: Rust tests
if: matrix.platform.cross == false
- name: Rust tests (macos)
if: matrix.platform.cross == false && matrix.platform.host == 'macos-latest'
run: |
ulimit -c unlimited
sudo touch /cores/test || { ls -ld /cores; exit 1; }
sudo rm /cores/test
retval=0
cargo test --workspace || retval=$?
sudo chmod -R a+rwx /cores
exit $retval
- name: Rust tests (other non-cross targets)
if: matrix.platform.cross == false && matrix.platform.host != 'macos-latest'
run: cargo test --workspace
- name: Upload crashes (macos)
uses: actions/upload-artifact@v2
if: matrix.platform.host == 'macos-latest' && ${{ always() }}
with:
name: macos.crashes
path: /cores
lint-rust:
runs-on: ubuntu-latest
steps: