Skip to content

Commit

Permalink
Auto merge of #286 - servo:github-actions, r=jdm
Browse files Browse the repository at this point in the history
Replace TravisCI and Appveyor with Github Actions.

None
  • Loading branch information
bors-servo committed Nov 21, 2021
2 parents d7b0ede + e4ac93b commit fbb4065
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 57 deletions.
101 changes: 101 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: CI

on:
push:
branches: [auto]
pull_request:
workflow_dispatch:

jobs:
linux-ci:
name: Linux
runs-on: ubuntu-latest
strategy:
matrix:
features: ["unstable", "unstable force-inprocess", "unstable memfd"]
steps:
- uses: actions/checkout@v2

- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true

- name: Cargo build
run: cargo build --features "${{ matrix.features }}"

- name: Cargo test
run: cargo test --features "${{ matrix.features }}"
env:
RUST_BACKTRACE: 1

mac-ci:
name: macOS
runs-on: macos-latest
strategy:
matrix:
features: ["unstable", "unstable force-inprocess"]

steps:
- uses: actions/checkout@v2

- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true

- name: Cargo build
run: cargo build --features "${{ matrix.features }}"

- name: Cargo test
run: cargo test --features "${{ matrix.features }}"
env:
RUST_BACKTRACE: 1

windows-ci:
name: Windows
runs-on: windows-latest
strategy:
matrix:
features: ["unstable", "unstable force-inprocess", "unstable windows-shared-memory-equality"]
target: ["x86_64-pc-windows-msvc", "i686-pc-windows-msvc"]

steps:
- uses: actions/checkout@v2

- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
target: ${{ matrix.target }}

- name: Cargo build
run: cargo build --features "${{ matrix.features }}" --target ${{ matrix.target }}

- name: Cargo test
run: cargo test --features "${{ matrix.features }}" --target ${{ matrix.target }}
env:
RUST_BACKTRACE: 1

build_result:
name: homu build finished
runs-on: ubuntu-latest
needs:
- "linux-ci"
- "mac-ci"
- "windows-ci"

steps:
- name: Mark the job as successful
run: exit 0
if: success()
- name: Mark the job as unsuccessful
run: exit 1
if: "!success()"

25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

32 changes: 0 additions & 32 deletions appveyor.yml

This file was deleted.

0 comments on commit fbb4065

Please sign in to comment.