Add github workflow.
This commit is contained in:
parent
581eadfbeb
commit
91ac84500f
|
@ -0,0 +1,58 @@
|
|||
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 install -y libegl1-mesa-dev libgtk-3-dev libsdl2-dev cmake
|
||||
|
||||
- name: Install rustc target
|
||||
run: rustup target add aarch64-unknown-linux-gnu
|
||||
|
||||
- uses: actions-rs/cargo@v1
|
||||
working-directory: simd
|
||||
with:
|
||||
command: build
|
||||
args: --target aarch64-unknown-linux-gnu
|
||||
|
||||
- uses: actions-rs/cargo@v1
|
||||
working-directory: geometry
|
||||
with:
|
||||
command: build
|
||||
args: --target aarch64-unknown-linux-gnu
|
||||
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: 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()"
|
Loading…
Reference in New Issue