Skip to content

Commit 91ac845

Browse files
authored
Add github workflow.
1 parent 581eadf commit 91ac845

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.github/workflows/main.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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: sudo apt-get install -y libegl1-mesa-dev libgtk-3-dev libsdl2-dev cmake
23+
24+
- name: Install rustc target
25+
run: rustup target add aarch64-unknown-linux-gnu
26+
27+
- uses: actions-rs/cargo@v1
28+
working-directory: simd
29+
with:
30+
command: build
31+
args: --target aarch64-unknown-linux-gnu
32+
33+
- uses: actions-rs/cargo@v1
34+
working-directory: geometry
35+
with:
36+
command: build
37+
args: --target aarch64-unknown-linux-gnu
38+
39+
- uses: actions-rs/cargo@v1
40+
with:
41+
command: build
42+
43+
- uses: actions-rs/cargo@v1
44+
with:
45+
command: test
46+
47+
build_result:
48+
name: homu build finished
49+
runs-on: ubuntu-latest
50+
needs:
51+
- "Test"
52+
steps:
53+
- name: Mark the job as successful
54+
run: exit 0
55+
if: success()
56+
- name: Mark the job as unsuccessful
57+
run: exit 1
58+
if: "!success()"

0 commit comments

Comments
 (0)