mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 14:55:05 +00:00
Migrate CI to GitHub Actions (#605)
This commit is contained in:
parent
baf435d8b8
commit
5c172dd475
64
.github/workflows/ci.yml
vendored
Normal file
64
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,64 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches-ignore: [ staging.tmp ]
|
||||
pull_request:
|
||||
branches-ignore: [ staging.tmp ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: ${{ matrix.name }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
name: [
|
||||
iOS Stable,
|
||||
MacOS Stable,
|
||||
MacOS Nightly,
|
||||
Ubuntu Stable,
|
||||
Ubuntu Nightly,
|
||||
Windows Stable,
|
||||
Windows Nightly,
|
||||
]
|
||||
include:
|
||||
- os: macos-10.15
|
||||
name: iOS Stable
|
||||
channel: stable
|
||||
build_command: rustup target add aarch64-apple-ios; cargo clippy --target aarch64-apple-ios
|
||||
- os: macos-10.15
|
||||
name: MacOS Stable
|
||||
channel: stable
|
||||
build_command: cargo clippy
|
||||
- os: macos-10.15
|
||||
name: MacOS Nightly
|
||||
channel: nightly
|
||||
build_command: cargo check
|
||||
- os: ubuntu-18.04
|
||||
name: Ubuntu Stable
|
||||
channel: stable
|
||||
build_command: cargo clippy
|
||||
- os: ubuntu-18.04
|
||||
name: Ubuntu Nightly
|
||||
channel: nightly
|
||||
build_command: cargo check
|
||||
- os: windows-2019
|
||||
name: Windows Stable
|
||||
channel: stable
|
||||
build_command: rustup default stable-msvc; cargo clippy
|
||||
- os: windows-2019
|
||||
name: Windows Nightly
|
||||
channel: nightly
|
||||
build_command: rustup default nightly-msvc; cargo clippy
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- if: matrix.channel == 'nightly'
|
||||
name: Install latest nightly
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
override: true
|
||||
- uses: actions/checkout@v2
|
||||
- name: cargo check
|
||||
run: ${{ matrix.build_command }}
|
69
.travis.yml
69
.travis.yml
@ -1,69 +0,0 @@
|
||||
language: rust
|
||||
sudo: false
|
||||
dist: xenial
|
||||
|
||||
matrix:
|
||||
include:
|
||||
# Linux 64bit
|
||||
- os: linux
|
||||
rust: stable
|
||||
compiler: gcc
|
||||
env:
|
||||
- BUILD_COMMAND=clippy
|
||||
#TODO: unlock when libglfw3 on Ubuntu comes with Vulkan support
|
||||
# or when we add a GL backend.
|
||||
#- os: linux
|
||||
# rust: nightly
|
||||
# compiler: gcc
|
||||
# env:
|
||||
# - BUILD_COMMAND=check
|
||||
|
||||
# Windows 64bit
|
||||
- os: windows
|
||||
rust: stable
|
||||
env:
|
||||
- BUILD_COMMAND=clippy
|
||||
- os: windows
|
||||
rust: nightly
|
||||
env:
|
||||
- BUILD_COMMAND=check
|
||||
|
||||
# macOS 64bit
|
||||
- os: osx
|
||||
osx_image: xcode9.4
|
||||
rust: stable
|
||||
compiler: clang
|
||||
env:
|
||||
- MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
- BUILD_COMMAND=clippy
|
||||
- os: osx
|
||||
osx_image: xcode9.4
|
||||
rust: nightly
|
||||
compiler: clang
|
||||
env:
|
||||
- MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
- BUILD_COMMAND=check
|
||||
|
||||
# iPhoneOS 64bit
|
||||
- os: osx
|
||||
osx_image: xcode11
|
||||
rust: stable
|
||||
env:
|
||||
- TARGET=aarch64-apple-ios
|
||||
- BUILD_COMMAND=clippy
|
||||
|
||||
branches:
|
||||
except:
|
||||
- staging.tmp
|
||||
|
||||
before_install:
|
||||
- if [[ $TRAVIS_RUST_VERSION != "nightly" ]] && [[ $TRAVIS_OS_NAME == "windows" ]]; then rustup default stable-msvc; fi
|
||||
- if [[ $TRAVIS_RUST_VERSION == "nightly" ]] && [[ $TRAVIS_OS_NAME == "windows" ]]; then rustup default nightly-msvc; fi
|
||||
|
||||
before_script:
|
||||
- if [[ $BUILD_COMMAND == "clippy" ]]; then rustup component add clippy; fi
|
||||
|
||||
script:
|
||||
- cargo test
|
||||
- (cd wgpu-core && cargo $BUILD_COMMAND --all-features)
|
||||
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then cargo $BUILD_COMMAND --release; fi
|
Loading…
Reference in New Issue
Block a user