Skip to content

feat(Cargo.toml): add optimized build profile #8

feat(Cargo.toml): add optimized build profile

feat(Cargo.toml): add optimized build profile #8

Workflow file for this run

name: build
on:
push:
branches: [master]
paths:
- "src/**/*.rs"
- "Cargo.*"
pull_request:
branches: [master]
paths:
- "src/**/*.rs"
- "Cargo.*"
env:
CARGO_TERM_COLOR: always
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
run: rustup toolchain install stable --profile minimal --no-self-update
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --release
- name: Run
run: cargo run -- --version
# FIXME: tree-sitter-norg2 does not compile on MacOS without hijacking the default C++ compiler
# macos:
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v4
# - name: Install Rust toolchain
# run: rustup toolchain install stable --profile minimal --no-self-update
# - uses: Swatinem/rust-cache@v2
# - name: Build
# run: cargo build --release
# - name: Run
# run: cargo run -- --version