Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: 2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don' introduce this bot as it will spam the PR lists.

updates:
- package-ecosystem: cargo
directory: /
schedule:
interval: weekly
cooldown: # applies only to version-updates (not security-updates)
semver-patch: 7 # wait 7 days before applying patch updates
semver-minor: 14
semver-major: 28
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
# https://blog.yossarian.net/2025/11/21/We-should-all-be-using-dependency-cooldowns
cooldown:
default-days: 7
- package-ecosystem: gitsubmodule
directory: /
schedule:
interval: weekly
cooldown:
default-days: 7
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
target: x86_64-apple-darwin
nobgt: 0
no_tests: 1
tag: macos-13
tag: macos-15-intel
- name: x86_64-unknown-linux-gnu (nightly)
target: x86_64-unknown-linux-gnu
nobgt: 0
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
NO_JEMALLOC_TESTS: ${{ matrix.no_tests }}
NOBGT: ${{ matrix.nobgt }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just actions/checkout@v6 is fine.

with:
submodules: true
- name: install
Expand All @@ -81,7 +81,7 @@ jobs:
name: Benchmarks using x86_64-unknown-linux-gnu (nightly)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
submodules: true
- run: rustup default nightly
Expand All @@ -90,7 +90,7 @@ jobs:
name: Rustfmt and Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
submodules: true
- run: rustup component add rustfmt clippy
Expand Down
6 changes: 5 additions & 1 deletion jemalloc-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,17 @@ fn main() {
}
// Disable -Wextra warnings - jemalloc doesn't compile free of warnings with
// it enabled: https://github.com/jemalloc/jemalloc/issues/1196
let compiler = cc::Build::new().extra_warnings(false).get_compiler();
let mut build = cc::Build::new();
let build = build.extra_warnings(false);
let (compiler, archiver) = (build.get_compiler(), build.get_archiver());
let cflags = compiler
.args()
.iter()
.map(|s| s.to_str().unwrap())
.collect::<Vec<_>>()
.join(" ");
info!("CC={:?}", compiler.path());
info!("AR={:?}", archiver.get_program());
info!("CFLAGS={:?}", cflags);

assert!(out_dir.exists(), "OUT_DIR does not exist");
Expand Down Expand Up @@ -196,6 +199,7 @@ fn main() {
)
.current_dir(&build_dir)
.env("CC", compiler.path())
.env("AR", archiver.get_program())
.env("CFLAGS", cflags.clone())
.env("LDFLAGS", cflags.clone())
.env("CPPFLAGS", cflags)
Expand Down