Skip to content

Commit 3cf8109

Browse files
authored
Merge pull request #1146 from Xanewok/github-actions
Add GitHub Actions CI
2 parents 9888114 + a3a1f4a commit 3cf8109

File tree

2 files changed

+49
-61
lines changed

2 files changed

+49
-61
lines changed

.appveyor.yml

Lines changed: 0 additions & 61 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
push:
7+
branches:
8+
- master
9+
- '*'
10+
schedule:
11+
- cron: '0 0 * * *' # Nightly at 00:00 UTC
12+
13+
jobs:
14+
build_and_test:
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
toolchain:
19+
- x86_64-unknown-linux-gnu
20+
- x86_64-apple-darwin
21+
- x86_64-pc-windows-msvc
22+
- i686-pc-windows-msvc
23+
include:
24+
- toolchain: x86_64-unknown-linux-gnu
25+
builder: ubuntu-latest
26+
os: linux
27+
- toolchain: x86_64-apple-darwin
28+
builder: macos-latest
29+
os: macos
30+
- toolchain: x86_64-pc-windows-msvc
31+
builder: windows-latest
32+
os: windows
33+
- toolchain: i686-pc-windows-msvc
34+
builder: windows-latest
35+
os: windows
36+
37+
name: nightly - ${{ matrix.toolchain }}
38+
runs-on: ${{ matrix.builder }}
39+
40+
steps:
41+
- uses: actions/checkout@v2
42+
- name: Use latest nightly on scheduled builds
43+
if: github.event_name == 'schedule'
44+
run: echo "nightly" > rust-toolchain
45+
- run: rustup set default-host ${{ matrix.toolchain }}
46+
- run: rustup component add rust-src
47+
- run: rustc -vV
48+
- run: cargo build --verbose
49+
- run: cargo test

0 commit comments

Comments
 (0)