* fix ci

track: https://github.com/dtolnay/proc-macro2/pull/501

* format toml

* fix typo

* Use nightly for libafl_frida

* Install nightly for splitter

* Use dtolnay/rust-toolchain@nightly

* install ca-certificates
This commit is contained in:
lazymio 2025-05-18 22:00:40 +08:00 committed by GitHub
parent 0e9dfd62ee
commit 542b7f75b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 16 additions and 1 deletions

View File

@ -166,6 +166,16 @@ jobs:
with: { shared-key: "ubuntu" }
# ---- build and feature check ----
# cargo-hack's --feature-powerset would be nice here but libafl has a too many knobs
# Tracking: https://github.com/CensoredUsername/dynasm-rs/issues/114
# One dep of libafl_frida fails on `DOCS_RS` for stable toolchain. Therefore, we _only_ run nightly for that.
# For the rest of other crates, we still use stable toolchain.
- name: "Setup nightly"
uses: dtolnay/rust-toolchain@nightly
with:
components: clippy, rustfmt
- name: "But default to stable"
run: rustup default stable
- name: Check each feature
# Skipping `python` as it has to be built with the `maturin` tool
# `sancov_pcguard_edges` is tested seperatelyc

View File

@ -64,6 +64,7 @@ RUN apt-get update && \
python3-pip \
python3-venv \
software-properties-common \
ca-certificates \
wget
RUN set -ex &&\
wget https://apt.llvm.org/llvm.sh &&\

View File

@ -67,9 +67,13 @@ fn main() -> Result<(), Box<dyn Error>> {
// run each task, with DOCS_RS override for libafl_frida
let mut cmd = Command::new("bash");
cmd.arg("-c").arg(task);
cmd.arg("-c");
if task.contains("libafl_frida") {
cmd.env("DOCS_RS", "1");
let task = task.replace("cargo ", "cargo +nightly ");
cmd.arg(task);
} else {
cmd.arg(task);
}
let status = cmd.status()?;
if !status.success() {