mirror of
https://github.com/kata-containers/cgroups-rs.git
synced 2026-08-05 02:13:23 +00:00
Migrate the CI from travis-ci to Github Actions
Because travis-ci.org will be shutting down. Signed-off-by: Tim Zhang <tim@hyper.sh>
This commit is contained in:
@@ -0,0 +1,26 @@
|
|||||||
|
name: BVT
|
||||||
|
on: [pull_request]
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Build
|
||||||
|
run: make debug
|
||||||
|
|
||||||
|
fmt:
|
||||||
|
name: Format Check
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- run: rustup component add rustfmt
|
||||||
|
- run: make fmt
|
||||||
|
test:
|
||||||
|
name: Run Unit Test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- run: make test
|
||||||
|
|
||||||
-31
@@ -1,31 +0,0 @@
|
|||||||
# Copyright (c) 2018 Levente Kurusa
|
|
||||||
# Copyright (c) 2020 Ant Group
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
#
|
|
||||||
|
|
||||||
dist: bionic
|
|
||||||
os: linux
|
|
||||||
language: rust
|
|
||||||
cache: cargo
|
|
||||||
|
|
||||||
arch:
|
|
||||||
- amd64
|
|
||||||
- arm64
|
|
||||||
|
|
||||||
install:
|
|
||||||
- rustup component add rustfmt
|
|
||||||
|
|
||||||
script:
|
|
||||||
- RUSTFLAGS="--deny warnings" cargo build
|
|
||||||
- if [ "$TRAVIS_CPU_ARCH" == "amd64" ]; then cargo test -- --color always --nocapture ; fi
|
|
||||||
- cargo fmt -- --check
|
|
||||||
|
|
||||||
rust:
|
|
||||||
- 1.44.1
|
|
||||||
- nightly
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
allow_failures:
|
|
||||||
- rust: nightly
|
|
||||||
fast_finish: true
|
|
||||||
Reference in New Issue
Block a user