mirror of
https://github.com/creating2morrow/neveko.git
synced 2024-12-23 03:59:24 +00:00
31 lines
709 B
YAML
31 lines
709 B
YAML
name: cargo-build
|
|
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- 'assets/**'
|
|
- 'docs/**'
|
|
- 'scripts/**'
|
|
- 'README.md'
|
|
branches: [ "main", "dev" ]
|
|
pull_request:
|
|
branches: [ "main", "dev" ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: 'true'
|
|
- name: Install dependencies
|
|
run: sudo apt install -y libssl-dev build-essential && rustup toolchain install nightly
|
|
- name: Build and Clippy
|
|
run: RUSTFLAGS="-Z threads=4" cargo +nightly build --future-incompat-report && cargo clippy
|
|
- name: Run tests
|
|
run: cd neveko-core && RUST_TEST_THREADS=1 cargo test
|