Fix CI (#3248)
* 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:
parent
0e9dfd62ee
commit
542b7f75b7
10
.github/workflows/build_and_test.yml
vendored
10
.github/workflows/build_and_test.yml
vendored
@ -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
|
||||
|
@ -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 &&\
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user