Skip to content

Commit

Permalink
rust.yml tar+upload Mac logs
Browse files Browse the repository at this point in the history
This is a hack!

Issue #223
  • Loading branch information
jtmoon79 committed Mar 24, 2024
1 parent 91c3cfb commit ede3dba
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -424,14 +424,30 @@ jobs:
job_test_macos:
name: test Mac OS
needs: [job_rust_release_channel, job_rust_msrv_os]
runs-on: macos-latest
strategy:
matrix:
os: [macos-11, macos-12, macos-13]
runs-on: ${{ matrix.os }}
steps:
- name: git checkout
uses: actions/checkout@v4
- uses: moonrepo/setup-rust@v1
with:
channel: ${{ env.MSRV_UPLOAD }}
bins: cargo-nextest
- name: create log.tgz
shell: bash
run: |
set -eux
uname -a
((sudo -- log show | head -n 5000) > /var/log/log-show.txt) || true
sudo -- log collect --size 10m --output /var/log/log-collect.logarchive
export GZIP=-9
sudo -- tar -zcvf /tmp/log.tgz /var/log/ /Library/Logs ~/Library/Logs
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }} log.tgz
path: /tmp/log.tgz
- name: nextest (all)
shell: bash
run: |
Expand Down

0 comments on commit ede3dba

Please sign in to comment.