From 5c172dd4756aa152b4f3350e624d7b1b5d24ddda Mon Sep 17 00:00:00 2001 From: Igor Shaposhnik Date: Wed, 22 Apr 2020 16:03:26 +0300 Subject: [PATCH] Migrate CI to GitHub Actions (#605) --- .github/workflows/ci.yml | 64 +++++++++++++++++++++++++++++++++++++ .travis.yml | 69 ---------------------------------------- bors.toml | 9 ++++-- 3 files changed, 71 insertions(+), 71 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..0fa43e4f4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d206b11c0..000000000 --- a/.travis.yml +++ /dev/null @@ -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 diff --git a/bors.toml b/bors.toml index 11903dacd..a2311e04f 100644 --- a/bors.toml +++ b/bors.toml @@ -1,6 +1,11 @@ status = [ - "continuous-integration/travis-ci/push", - #"continuous-integration/appveyor/branch" + "iOS Stable", + "MacOS Stable", + "MacOS Nightly", + "Ubuntu Stable", + "Ubuntu Nightly", + "Windows Stable", + "Windows Nightly", ] timeout_sec = 18000 # 5 hours