diff --git a/.github/workflows/bench.yaml b/.github/workflows/bench.yaml index 305a73e..a015d26 100644 --- a/.github/workflows/bench.yaml +++ b/.github/workflows/bench.yaml @@ -22,7 +22,8 @@ jobs: toolchain: stable profile: minimal default: true - - uses: actions/setup-go@v2 + - name: Set up Go + uses: actions/setup-go@v2 with: go-version: '^1.14.0' - name: Set up Node.js for generating code diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index 8f279c2..9ca6a23 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -42,6 +42,10 @@ jobs: toolchain: stable profile: minimal default: true + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: '^1.14.0' - name: Build CLI working-directory: ./cli run: cargo build --release diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index d9e9514..b8512c2 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -31,6 +31,10 @@ jobs: toolchain: stable profile: minimal default: true + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: '^1.14.0' - name: Build Java native library run: cargo build --release working-directory: ./java diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index e96ecc5..5476274 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -38,6 +38,10 @@ jobs: toolchain: stable profile: minimal default: true + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: '^1.14.0' - name: Build native module working-directory: ./nodejs run: | diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index bfe3bb2..a45697e 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -51,6 +51,10 @@ jobs: toolchain: stable profile: minimal default: true + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: '^1.14.0' - name: Build native module working-directory: ./python run: cargo build --release diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 3026b4b..bda314f 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -68,6 +68,10 @@ jobs: toolchain: stable profile: minimal default: true + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: '^1.14.0' - name: Build Ruby native library shell: bash -l {0} run: cargo build --release diff --git a/bench/hyperbuild-bench/src/main.rs b/bench/hyperbuild-bench/src/main.rs index a81ba11..d00ed9b 100644 --- a/bench/hyperbuild-bench/src/main.rs +++ b/bench/hyperbuild-bench/src/main.rs @@ -1,4 +1,4 @@ -use hyperbuild::hyperbuild; +use hyperbuild::{Cfg, hyperbuild}; use std::fs; use std::io::{stdout}; use std::time::Instant; @@ -23,7 +23,9 @@ fn main() { let start = Instant::now(); for _ in 0..args.iterations { let mut data = source.to_vec(); - hyperbuild(&mut data).unwrap(); + hyperbuild(&mut data, &Cfg { + minify_js: false, + }).unwrap(); }; let elapsed = start.elapsed().as_secs_f64(); let ops = args.iterations as f64 / elapsed; diff --git a/fuzz/process/src/main.rs b/fuzz/process/src/main.rs index e7d2563..0eeca26 100644 --- a/fuzz/process/src/main.rs +++ b/fuzz/process/src/main.rs @@ -9,7 +9,9 @@ fn main() { let path_in_catch = path.clone(); let res = panic::catch_unwind(|| { let mut contents = fs::read(path_in_catch).unwrap(); - let _ = hyperbuild::hyperbuild(&mut contents); + let _ = hyperbuild::hyperbuild(&mut contents, &hyperbuild::Cfg { + minify_js: false, + }); }); if res.is_err() { let contents = fs::read(path).unwrap(); diff --git a/fuzz/src/main.rs b/fuzz/src/main.rs index 90b2819..157152c 100644 --- a/fuzz/src/main.rs +++ b/fuzz/src/main.rs @@ -1,9 +1,11 @@ use afl::fuzz; -use hyperbuild::hyperbuild; +use hyperbuild::{Cfg, hyperbuild}; fn main() { fuzz!(|data: &[u8]| { let mut mut_data: Vec = data.iter().map(|x| *x).collect(); - let _ = hyperbuild(&mut mut_data); + let _ = hyperbuild(&mut mut_data, &Cfg { + minify_js: false, + }); }); }