Skip to content

Commit

Permalink
Switch to GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark committed Aug 19, 2020
1 parent be0b2ba commit 375af89
Show file tree
Hide file tree
Showing 5 changed files with 106 additions and 119 deletions.
96 changes: 96 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
name: CI

on:
push:
branches-ignore: [staging.tmp]
pull_request:
branches-ignore: [staging.tmp]

jobs:
ios_build:
name: iOS Stable
runs-on: macos-10.15
env:
TARGET: aarch64-apple-ios
steps:
- uses: actions/checkout@v2
- run: rustup target add ${{ env.TARGET }}
- name: Check
run: cargo check --manifest-path src/backend/metal/Cargo.toml --target ${{ env.TARGET }}

android_build:
name: Android Stable
runs-on: ubuntu-18.04
env:
TARGET: aarch64-linux-android
steps:
- uses: actions/checkout@v2
- name: Install NDK
run: |
curl -LO https://dl.google.com/android/repository/android-ndk-r21b-linux-x86_64.zip
unzip -qq android-ndk-r21b-linux-x86_64.zip -d $GITHUB_WORKSPACE
export NDK_HOME_BIN=$GITHUB_WORKSPACE/android-ndk-r21b/toolchains/llvm/prebuilt/linux-x86_64/bin
ln -s $NDK_HOME_BIN/aarch64-linux-android21-clang $NDK_HOME_BIN/aarch64-linux-android-clang
echo "::add-path::$NDK_HOME_BIN"
- run: rustup target add ${{ env.TARGET }}
- name: Check
run: cargo check --manifest-path src/backend/vulkan/Cargo.toml --target ${{ env.TARGET }}

build:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
name:
[
MacOS Stable,
MacOS Nightly,
Ubuntu Stable,
Ubuntu Nightly,
Windows Stable,
Windows Nightly,
]
include:
- os: macos-10.15
name: MacOS Stable
channel: stable
additional_command: cd src/backend/metal && cargo check --all-features
- os: macos-10.15
name: MacOS Nightly
channel: nightly
additional_command:
- os: ubuntu-18.04
name: Ubuntu Stable
channel: stable
additional_command:
- os: ubuntu-18.04
name: Ubuntu Nightly
channel: nightly
additional_command:
- os: windows-2019
name: Windows Stable
channel: stable
additional_command:
- os: windows-2019
name: Windows Nightly
channel: nightly
additional_command:
steps:
- uses: actions/checkout@v2
- if: matrix.channel == 'nightly'
name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- if: matrix.os == 'windows-2019'
name: Install make
run: choco install make
#- if: matrix.channel == 'stable'
# run: rustup component add clippy
# build with no features first
- run: make all
- if: matrix.additional_command != ''
name: Check extra features
run: ${{ matrix.additional_command }}
115 changes: 0 additions & 115 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ check: check-backends
cd src/warden && cargo check $(CHECK_TARGET_FLAG) --features "env_logger $(FEATURES_GL) $(FEATURES_HAL) $(FEATURES_HAL2)"

check-backends:
@echo "Note: excluding \`warden\` here, since it depends on serialization"
cargo check --all $(CHECK_TARGET_FLAG) $(EXCLUDES) --exclude gfx-warden

check-wasm:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<a href="https://crates.io/crates/gfx-hal">
<img src="http://img.shields.io/crates/v/gfx-hal.svg?label=gfx-hal" alt = "gfx-hal on crates.io">
</a>
<a href="https://travis-ci.org/gfx-rs/gfx">
<img src="https://img.shields.io/travis/gfx-rs/gfx/master.svg?branch=master" alt="Travis Build Status">
<a href="https://github.com/gfx-rs/gfx/actions">
<img src="https://github.com/gfx-rs/gfx/workflows/CI/badge.svg" alt="Build Status">
</a>
<br>
<strong><a href="info/getting_started.md">Getting Started</a> | <a href="http://docs.rs/gfx-hal">Documentation</a> | <a href="http://gfx-rs.github.io/">Blog</a> </strong>
Expand Down
9 changes: 8 additions & 1 deletion bors.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
status = [
"continuous-integration/travis-ci/push"
"iOS Stable",
"MacOS Stable",
"MacOS Nightly",
"Android Stable",
"Ubuntu Stable",
"Ubuntu Nightly",
"Windows Stable",
"Windows Nightly",
]

timeout_sec = 18000 # 5 hours

0 comments on commit 375af89

Please sign in to comment.