2023-05-06 05:53:44 +00:00
|
|
|
name: cargo-build
|
2023-05-02 03:56:11 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-05-02 08:00:19 +00:00
|
|
|
paths-ignore:
|
2023-06-12 15:16:18 +00:00
|
|
|
- 'assets/**'
|
2023-05-02 08:00:19 +00:00
|
|
|
- 'docs/**'
|
|
|
|
- 'scripts/**'
|
|
|
|
- 'README.md'
|
2023-05-06 03:49:22 +00:00
|
|
|
branches: [ "main", "dev" ]
|
2023-05-02 03:56:11 +00:00
|
|
|
pull_request:
|
2023-05-06 03:49:22 +00:00
|
|
|
branches: [ "main", "dev" ]
|
2023-05-02 03:56:11 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2024-09-23 09:26:18 +00:00
|
|
|
- uses: actions/checkout@v4
|
2024-09-23 09:27:47 +00:00
|
|
|
with:
|
|
|
|
submodules: 'true'
|
2023-05-02 04:19:20 +00:00
|
|
|
- name: Install dependencies
|
2024-09-23 09:22:56 +00:00
|
|
|
run: sudo apt install -y libssl-dev build-essential && rustup toolchain install nightly
|
2024-09-06 10:00:14 +00:00
|
|
|
- name: Build and Clippy
|
|
|
|
run: RUSTFLAGS="-Z threads=4" cargo +nightly build --future-incompat-report && cargo clippy
|
2023-05-02 03:56:11 +00:00
|
|
|
- name: Run tests
|
2024-09-06 10:00:14 +00:00
|
|
|
run: cd neveko-core && RUST_TEST_THREADS=1 cargo test
|