Skip to content
Merged

Fix CI #3248

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
10 changes: 10 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&\
Expand Down
6 changes: 5 additions & 1 deletion utils/ci_splitter/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Loading