-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI Build on github for multiple platforms
- Loading branch information
1 parent
9c237e5
commit 3d509a0
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |