-
Notifications
You must be signed in to change notification settings - Fork 22
45 lines (36 loc) · 971 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: ci
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build_test:
name: Build & Test
if: "! contains(github.event.head_commit.message, '[skip ci]')"
runs-on: macos-12
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Dependencies
run: yarn install --frozen-lockfile
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Python version
run: python --version
- name: Lint
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Set up Android NDK
uses: nttld/setup-ndk@afb4c9964b521afb97c864b7d40b11e6911bd410 # [email protected]
id: setup-ndk
with:
ndk-version: r27c
- name: Build
run: yarn build
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
- name: Test
run: yarn test:macos