Skip to content

Commit 375af89

Browse files
committed
Switch to GHA
1 parent be0b2ba commit 375af89

File tree

5 files changed

+106
-119
lines changed

5 files changed

+106
-119
lines changed

.github/workflows/CI.yml

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches-ignore: [staging.tmp]
6+
pull_request:
7+
branches-ignore: [staging.tmp]
8+
9+
jobs:
10+
ios_build:
11+
name: iOS Stable
12+
runs-on: macos-10.15
13+
env:
14+
TARGET: aarch64-apple-ios
15+
steps:
16+
- uses: actions/checkout@v2
17+
- run: rustup target add ${{ env.TARGET }}
18+
- name: Check
19+
run: cargo check --manifest-path src/backend/metal/Cargo.toml --target ${{ env.TARGET }}
20+
21+
android_build:
22+
name: Android Stable
23+
runs-on: ubuntu-18.04
24+
env:
25+
TARGET: aarch64-linux-android
26+
steps:
27+
- uses: actions/checkout@v2
28+
- name: Install NDK
29+
run: |
30+
curl -LO https://dl.google.com/android/repository/android-ndk-r21b-linux-x86_64.zip
31+
unzip -qq android-ndk-r21b-linux-x86_64.zip -d $GITHUB_WORKSPACE
32+
export NDK_HOME_BIN=$GITHUB_WORKSPACE/android-ndk-r21b/toolchains/llvm/prebuilt/linux-x86_64/bin
33+
ln -s $NDK_HOME_BIN/aarch64-linux-android21-clang $NDK_HOME_BIN/aarch64-linux-android-clang
34+
echo "::add-path::$NDK_HOME_BIN"
35+
- run: rustup target add ${{ env.TARGET }}
36+
- name: Check
37+
run: cargo check --manifest-path src/backend/vulkan/Cargo.toml --target ${{ env.TARGET }}
38+
39+
build:
40+
name: ${{ matrix.name }}
41+
runs-on: ${{ matrix.os }}
42+
strategy:
43+
fail-fast: false
44+
matrix:
45+
name:
46+
[
47+
MacOS Stable,
48+
MacOS Nightly,
49+
Ubuntu Stable,
50+
Ubuntu Nightly,
51+
Windows Stable,
52+
Windows Nightly,
53+
]
54+
include:
55+
- os: macos-10.15
56+
name: MacOS Stable
57+
channel: stable
58+
additional_command: cd src/backend/metal && cargo check --all-features
59+
- os: macos-10.15
60+
name: MacOS Nightly
61+
channel: nightly
62+
additional_command:
63+
- os: ubuntu-18.04
64+
name: Ubuntu Stable
65+
channel: stable
66+
additional_command:
67+
- os: ubuntu-18.04
68+
name: Ubuntu Nightly
69+
channel: nightly
70+
additional_command:
71+
- os: windows-2019
72+
name: Windows Stable
73+
channel: stable
74+
additional_command:
75+
- os: windows-2019
76+
name: Windows Nightly
77+
channel: nightly
78+
additional_command:
79+
steps:
80+
- uses: actions/checkout@v2
81+
- if: matrix.channel == 'nightly'
82+
name: Install latest nightly
83+
uses: actions-rs/toolchain@v1
84+
with:
85+
toolchain: nightly
86+
override: true
87+
- if: matrix.os == 'windows-2019'
88+
name: Install make
89+
run: choco install make
90+
#- if: matrix.channel == 'stable'
91+
# run: rustup component add clippy
92+
# build with no features first
93+
- run: make all
94+
- if: matrix.additional_command != ''
95+
name: Check extra features
96+
run: ${{ matrix.additional_command }}

.travis.yml

-115
This file was deleted.

Makefile

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ check: check-backends
5656
cd src/warden && cargo check $(CHECK_TARGET_FLAG) --features "env_logger $(FEATURES_GL) $(FEATURES_HAL) $(FEATURES_HAL2)"
5757

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

6261
check-wasm:

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<a href="https://crates.io/crates/gfx-hal">
99
<img src="http://img.shields.io/crates/v/gfx-hal.svg?label=gfx-hal" alt = "gfx-hal on crates.io">
1010
</a>
11-
<a href="https://travis-ci.org/gfx-rs/gfx">
12-
<img src="https://img.shields.io/travis/gfx-rs/gfx/master.svg?branch=master" alt="Travis Build Status">
11+
<a href="https://github.com/gfx-rs/gfx/actions">
12+
<img src="https://github.com/gfx-rs/gfx/workflows/CI/badge.svg" alt="Build Status">
1313
</a>
1414
<br>
1515
<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>

bors.toml

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
status = [
2-
"continuous-integration/travis-ci/push"
2+
"iOS Stable",
3+
"MacOS Stable",
4+
"MacOS Nightly",
5+
"Android Stable",
6+
"Ubuntu Stable",
7+
"Ubuntu Nightly",
8+
"Windows Stable",
9+
"Windows Nightly",
310
]
411

512
timeout_sec = 18000 # 5 hours

0 commit comments

Comments
 (0)