Skip to content

bump macos

bump macos #5927

name: Beta and nightly Rust
on:
pull_request:
schedule:
- cron: '0 5 * * *'
env:
CARGO_INCREMENTAL: false
jobs:
linux:
strategy:
matrix:
rust: [ beta, nightly ]
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
with:
path: |
~/.rustup
~/.cargo/registry
~/.cargo/git
target
.cached
# ~/.cache/sccache
key: ${{ runner.os }}-main-${{matrix.rust}}-${{steps.date.outputs.date}}-d
# - name: "Setup sccache"
# run: .travis/setup-sccache.sh
- name: Rustup update
run: rustup update
- name: Native script
env:
RUST_VERSION: ${{matrix.rust}}
run: .travis/regular-tests.sh
# - name: Stop sccache server
# run: sccache --stop-server || true
warnings:
strategy:
matrix:
rust: [ 1.75.0, beta ]
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Rustup update
run: rustup update
- name: LLVM setup
run: sudo apt-get install -y llvm
- name: cargo check, -D warnings
env:
RUSTFLAGS: "-D warnings"
RUST_VERSION: ${{matrix.rust}}
run: |
rustc --version
cargo check
cargo-clippy:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Rustup update, install clippy
run: rustup update && rustup component add clippy && sudo apt-get install -y llvm
- name: Run cargo-clippy
run: cargo clippy
env:
RUSTFLAGS: "-D warnings"
cargo-deny:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Rustup update
run: rustup update
- name: Install cargo-deny
run: |
curl -L https://github.com/EmbarkStudios/cargo-deny/releases/download/0.14.19/cargo-deny-0.14.19-x86_64-unknown-linux-musl.tar.gz \
| tar -zx --strip-components=1 "cargo-deny-0.14.19-x86_64-unknown-linux-musl/cargo-deny"
- name: Run cargo-deny
run: .travis/cargo-deny-check.sh