Skip to content

Commit

Permalink
CI Build on github for multiple platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
wigy-opensource-developer committed Jul 27, 2020
1 parent 9c237e5 commit 3d509a0
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Commit checks
on: [push, pull_request]
jobs:
build:
name: Build/test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: false
- uses: actions-rs/cargo@v1
with:
command: check
- uses: actions-rs/cargo@v1
with:
command: test
binaries:
name: Compile FFI binaries for ${{matrix.triple.name}}
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
triple:
- { name: 'Linux-x86', target: 'x86_64-unknown-linux-gnu', use-cross: false }
- { name: 'Android-ARMv8', target: 'aarch64-linux-android', use-cross: true }
- { name: 'Android-x86_64', target: 'x86_64-linux-android', use-cross: true }
- { name: 'Android-x86', target: 'i686-linux-android', use-cross: true }
steps:
- uses: actions/checkout@v2
- uses: actions-rs/cargo@v1
with:
use-cross: ${{matrix.triple.use-cross}}
command: build
args: --target ${{matrix.triple.target}} --release
- uses: actions/upload-artifact@v2
with:
name: ${{matrix.triple.name}}.zip
path: |
target/${{matrix.triple.target}}/release/libmorpheus_core.so

0 comments on commit 3d509a0

Please sign in to comment.