diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..90644d719 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,43 @@ +name: CI + +on: + push: + branches-ignore: [ staging.tmp ] + pull_request: + branches-ignore: [ staging.tmp ] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macos-10.15, ubuntu-18.04, windows-2019] + include: + - os: macos-10.15 + CHECK_COMMAND: cargo check + TEST_COMMAND: cargo test --no-run + - os: ubuntu-18.04 + CHECK_COMMAND: cargo check + TEST_COMMAND: cargo test --no-run + - os: windows-2019 + CHECK_COMMAND: rustup default stable-msvc; cargo check + TEST_COMMAND: rustup default stable-msvc; cargo test --no-run + steps: + - uses: actions/checkout@v2 + - name: cargo check + run: ${{ matrix.CHECK_COMMAND }} + - name: cargo test + run: ${{ matrix.TEST_COMMAND }} + docs: + runs-on: [ubuntu-18.04] + steps: + - uses: actions/checkout@v2 + - name: Install latest nightly + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + continue-on-error: true + - name: cargo doc + run: cargo --version; cargo doc --lib --no-deps + continue-on-error: true diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9282d43c0..000000000 --- a/.travis.yml +++ /dev/null @@ -1,26 +0,0 @@ -language: rust - -os: - - linux - - osx - - windows - -jobs: - include: - - os: linux - rust: nightly - script: cargo doc --lib --no-deps - allow_failures: - - os: linux - rust: nightly - -branches: - except: - - staging.tmp - -before_install: - - if [[ $TRAVIS_OS_NAME == "windows" ]]; then rustup default stable-msvc; fi - -script: - - cargo check - - cargo test --no-run diff --git a/wgpu/README.md b/wgpu/README.md index 04a6399db..f8ea76296 100644 --- a/wgpu/README.md +++ b/wgpu/README.md @@ -1,8 +1,7 @@ # wgpu-rs - -[![Build Status](https://travis-ci.org/gfx-rs/wgpu-rs.svg)](https://travis-ci.org/gfx-rs/wgpu-rs) +[![Build Status](https://github.com/gfx-rs/wgpu-rs/workflows/CI/badge.svg?branch=master)](https://github.com/gfx-rs/wgpu-rs/actions) [![Crates.io](https://img.shields.io/crates/v/wgpu.svg)](https://crates.io/crates/wgpu) [![Docs.rs](https://docs.rs/wgpu/badge.svg)](https://docs.rs/wgpu) [![Matrix](https://img.shields.io/matrix/wgpu:matrix.org)](https://matrix.to/#/#wgpu:matrix.org) diff --git a/wgpu/bors.toml b/wgpu/bors.toml index dccefd878..4fe41dee1 100644 --- a/wgpu/bors.toml +++ b/wgpu/bors.toml @@ -1,5 +1,8 @@ status = [ - "continuous-integration/travis-ci/push", + "build (macos-10.15)", + "build (ubuntu-18.04)", + "build (windows-2019)", + "docs", ] timeout_sec = 18000 # 5 hours