generated from mistricky/nvim-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 21
41 lines (35 loc) · 1.04 KB
/
build.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
name: Build
on: push
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
target: ['aarch64-apple-darwin', 'x86_64-apple-darwin']
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
target: ${{ matrix.target }}
# - run: sudo apt-get install libx11-xcb-dev libxcb-shape0-dev libxcb-xfixes0-dev libharfbuzz-dev
# - run: sudo apt update && sudo apt install -y libclang-dev && cargo install bat
- name: Install deps
run: sudo apt update && sudo apt install \
clang \
gcc \
g++ \
zlib1g-dev \
libmpc-dev \
libmpfr-dev \
libgmp-dev
- name: Build target
uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --release --target ${{ matrix.target }} --manifest-path ./generator/Cargo.toml