mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-02-16 17:02:32 +00:00
[rs] Migrate CI to GitHub Actions
This commit is contained in:
parent
bea1935c75
commit
877e0016eb
43
.github/workflows/ci.yml
vendored
Normal file
43
.github/workflows/ci.yml
vendored
Normal file
@ -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
|
26
.travis.yml
26
.travis.yml
@ -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
|
@ -1,8 +1,7 @@
|
||||
<img align="right" width="25%" src="logo.png">
|
||||
|
||||
# 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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user