From 140b9173c85ca015643ec1942b106674b822e854 Mon Sep 17 00:00:00 2001 From: ko1N Date: Sun, 18 Dec 2022 22:43:52 +0100 Subject: [PATCH] Fixed nightly builds by providing --target flag --- .github/workflows/build.yml | 8 ++++---- .github/workflows/nightly-build.yml | 4 ++-- memflow-pcileech/src/lib.rs | 1 - 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b7d5c5b..615362d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,7 @@ env: jobs: build_ubuntu_x86-64_bundled: - name: Build for ubuntu-latest (x86-64) + name: Build for ubuntu-latest (x86-64) with bundled headers runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -24,7 +24,7 @@ jobs: run: cargo build --workspace --examples --verbose build_ubuntu_x86-64_bindgen: - name: Build for ubuntu-latest (x86-64) + name: Build for ubuntu-latest (x86-64) with generated headers runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -40,7 +40,7 @@ jobs: run: cargo build --workspace --features bindgen --examples --verbose build_windows_x86-64_bundled: - name: Build for windows-latest (x86-64) + name: Build for windows-latest (x86-64) with bundled headers runs-on: windows-latest steps: - uses: actions/checkout@v2 @@ -57,7 +57,7 @@ jobs: run: cargo build --workspace --examples --verbose build_windows_x86-64_bindgen: - name: Build for windows-latest (x86-64) + name: Build for windows-latest (x86-64) with generated headers runs-on: windows-latest steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index ded5d37..1ca6042 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -22,7 +22,7 @@ jobs: - name: Download renamer run: curl -sSf https://raw.githubusercontent.com/memflow/memflowup/master/target_rename.sh > target_rename.sh - name: build - run: cargo build --workspace --verbose + run: cargo build --workspace --verbose --target x86_64-unknown-linux-gnu - name: Rename and collect artifacts id: artifacts run: echo "::set-output name=artifact::$(sh ./target_rename.sh "x86_64-unknown-linux-gnu" | head -n 1)" @@ -44,7 +44,7 @@ jobs: run: curl -sSf https://raw.githubusercontent.com/memflow/memflowup/master/target_rename.sh > target_rename.sh - name: build shell: bash - run: cargo build --workspace --verbose + run: cargo build --workspace --verbose --target x86_64-pc-windows-msvc - name: Rename and collect artifacts id: artifacts shell: bash diff --git a/memflow-pcileech/src/lib.rs b/memflow-pcileech/src/lib.rs index c87ae9a..f8d1eb6 100644 --- a/memflow-pcileech/src/lib.rs +++ b/memflow-pcileech/src/lib.rs @@ -6,7 +6,6 @@ use std::ptr; use std::slice; use std::sync::{Arc, Mutex}; -use log::warn; use log::{error, info}; use memflow::cglue;