Skip to content

Commit caeb2d3

Browse files
authored
Auto merge of #504 - servo:jdm-patch-3, r=jdm
Add github workflow. Fixes #503.
2 parents 581eadf + a29cfaa commit caeb2d3

File tree

2 files changed

+54
-25
lines changed

2 files changed

+54
-25
lines changed

.github/workflows/main.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ['master', 'auto']
6+
pull_request:
7+
8+
jobs:
9+
Test:
10+
runs-on: ubuntu-latest
11+
env:
12+
HARFBUZZ_SYS_NO_PKG_CONFIG: true
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions-rs/toolchain@v1
16+
with:
17+
toolchain: stable
18+
override: true
19+
profile: minimal
20+
21+
- name: Install packages
22+
run: |
23+
sudo apt-get update
24+
sudo apt-get install -y libegl1-mesa-dev libgtk-3-dev libsdl2-dev cmake
25+
26+
- name: Install rustc target
27+
run: rustup target add aarch64-unknown-linux-gnu
28+
29+
- name: Build arm64 simd
30+
run: cargo build --target aarch64-unknown-linux-gnu
31+
working-directory: simd
32+
33+
- name: Build arm64 geometry
34+
run: cargo build --target aarch64-unknown-linux-gnu
35+
working-directory: geometry
36+
37+
- name: Build
38+
run: cargo build
39+
40+
- name: Test
41+
run: cargo test
42+
43+
build_result:
44+
name: homu build finished
45+
runs-on: ubuntu-latest
46+
needs:
47+
- "Test"
48+
steps:
49+
- name: Mark the job as successful
50+
run: exit 0
51+
if: success()
52+
- name: Mark the job as unsuccessful
53+
run: exit 1
54+
if: "!success()"

.travis.yml

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

0 commit comments

Comments
 (0)