pathfinder/.github/workflows/main.yml

61 lines
1.3 KiB
YAML
Raw Normal View History

2022-03-27 22:34:25 -04:00
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
2022-03-27 22:39:03 -04:00
run: |
sudo apt-get update
sudo apt-get install -y libegl1-mesa-dev libgtk-3-dev libsdl2-dev cmake
2022-03-27 22:34:25 -04:00
- name: Install rustc target
run: rustup target add aarch64-unknown-linux-gnu
- uses: actions-rs/cargo@v1
with:
command: build
args: --target aarch64-unknown-linux-gnu
2022-03-27 22:35:46 -04:00
working-directory: simd
2022-03-27 22:34:25 -04:00
- uses: actions-rs/cargo@v1
with:
command: build
args: --target aarch64-unknown-linux-gnu
2022-03-27 22:35:46 -04:00
working-directory: geometry
2022-03-27 22:34:25 -04:00
- 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()"