Skip to content

Commit

Permalink
🍋 CI
Browse files Browse the repository at this point in the history
  • Loading branch information
LemonHX committed Aug 13, 2021
1 parent aca193a commit 452b6ed
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 13 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
on: [push, pull_request]

name: CI

jobs:
check:
name: 🍋 Check 检测
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- uses: actions-rs/cargo@v1
with:
command: check

test:
name: 🍋 Run Test Suite 单元测试
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- uses: actions-rs/cargo@v1
with:
command: test
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mimalloc-rust"
version = "0.1.1"
version = "0.1.2"
edition = "2018"
repository = "https://github.com/lemonhx/mimalloc-rust"
description = "the best binding for mimalloc in rust"
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
//! #![feature(allocator_api)]
//! use std::{ffi::c_void, mem::ManuallyDrop};
//!
//! use crate::{
//! use mimalloc_rust::{
//! heap::{HeapVisitor, MiMallocHeap},
//! raw::{
//! heap::{mi_heap_area_t, mi_heap_delete, mi_heap_new},
Expand Down
13 changes: 2 additions & 11 deletions src/tests/mod.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
mod heap;
use std::{ffi::c_void, mem::ManuallyDrop, println};

use crate::raw::{
heap::{mi_heap_area_t, mi_heap_delete},
runtime_options::mi_option_show_stats,
types::mi_heap_t,
};
use crate::raw::runtime_options::mi_option_show_stats;

use crate::{
heap::{HeapVisitor, MiMallocHeap},
raw::heap::mi_heap_new,
with_heap, GlobalMiMalloc,
};
use crate::GlobalMiMalloc;

#[global_allocator]
static GLOBAL_MIMALLOC: GlobalMiMalloc = GlobalMiMalloc;
Expand Down

0 comments on commit 452b6ed

Please sign in to comment.