Add github workflow.

This commit is contained in:
Josh Matthews 2022-03-27 22:34:25 -04:00 committed by GitHub
parent 581eadfbeb
commit 91ac84500f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 58 additions and 0 deletions

58
.github/workflows/main.yml vendored Normal file
View File

@ -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()"