Skip to content

f

f #25

Workflow file for this run

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-get update && sudo apt-get 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