123456789101112131415161718192021222324252627282930313233343536373839 |
- name: CI
- on:
- push:
- branches: [ "master" ]
- pull_request:
- branches: [ "master" ]
- schedule:
- - cron: "0 12 * * 1" # Every Monday at 12:00 UTC
- jobs:
- rustfmt:
- name: Rustfmt
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@master
- - name: Install Rust
- run: rustup update stable && rustup default stable && rustup component add rustfmt
- - run: cargo fmt --all --check
- ci:
- name: CI
- runs-on: ubuntu-latest
- steps:
- - name: Checkout the source code
- uses: actions/checkout@v2
- with:
- fetch-depth: 1
- - name: Test and build
- shell: bash -ileo pipefail {0}
- run: |
- apt-get update -y
- DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends g++ curl ca-certificates libc6-dev make libssl-dev pkg-config git cmake zlib1g-dev
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable --profile minimal -y
- cargo test --release --all
- cargo build --release
|