Auto merge of #504 - servo:jdm-patch-3, r=jdm
Add github workflow. Fixes #503.
This commit is contained in:
commit
caeb2d3c6d
|
@ -0,0 +1,54 @@
|
||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ['master', 'auto']
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
HARFBUZZ_SYS_NO_PKG_CONFIG: true
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: stable
|
||||||
|
override: true
|
||||||
|
profile: minimal
|
||||||
|
|
||||||
|
- name: Install packages
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y libegl1-mesa-dev libgtk-3-dev libsdl2-dev cmake
|
||||||
|
|
||||||
|
- name: Install rustc target
|
||||||
|
run: rustup target add aarch64-unknown-linux-gnu
|
||||||
|
|
||||||
|
- name: Build arm64 simd
|
||||||
|
run: cargo build --target aarch64-unknown-linux-gnu
|
||||||
|
working-directory: simd
|
||||||
|
|
||||||
|
- name: Build arm64 geometry
|
||||||
|
run: cargo build --target aarch64-unknown-linux-gnu
|
||||||
|
working-directory: geometry
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: cargo build
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: cargo test
|
||||||
|
|
||||||
|
build_result:
|
||||||
|
name: homu build finished
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- "Test"
|
||||||
|
steps:
|
||||||
|
- name: Mark the job as successful
|
||||||
|
run: exit 0
|
||||||
|
if: success()
|
||||||
|
- name: Mark the job as unsuccessful
|
||||||
|
run: exit 1
|
||||||
|
if: "!success()"
|
25
.travis.yml
25
.travis.yml
|
@ -1,25 +0,0 @@
|
||||||
language: rust
|
|
||||||
rust:
|
|
||||||
- nightly
|
|
||||||
- stable
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- libegl1-mesa-dev
|
|
||||||
- libgtk-3-dev
|
|
||||||
- libsdl2-dev
|
|
||||||
- cmake
|
|
||||||
script:
|
|
||||||
- rustup target add aarch64-unknown-linux-gnu
|
|
||||||
- cd simd
|
|
||||||
- cargo build --target aarch64-unknown-linux-gnu
|
|
||||||
- cd ../geometry
|
|
||||||
- cargo build --target aarch64-unknown-linux-gnu
|
|
||||||
- cd ..
|
|
||||||
- cargo build
|
|
||||||
- cargo test
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- HARFBUZZ_SYS_NO_PKG_CONFIG=true
|
|
||||||
notifications:
|
|
||||||
webhooks: http://build.servo.org:54856/travis
|
|
Loading…
Reference in New Issue