Added auto-clear argument which enables auto-clear functionality of status registers in pcileech; Added feature-gate to prevent re-generating bindings which removes the requirement of having libclang installed; Added more build-pipelines
parent
8f6a51e894
commit
0c0352b4b1
@ -0,0 +1,57 @@
|
||||
name: Nightly build
|
||||
|
||||
on:
|
||||
push:
|
||||
branch:
|
||||
- 'main'
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
|
||||
build_ubuntu_x86-64:
|
||||
name: Publish binary builds for linux (x86-64)
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: 'true'
|
||||
- name: install libusb-1.0
|
||||
run: sudo apt-get install libusb-1.0-0-dev
|
||||
- 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
|
||||
- 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)"
|
||||
- name: Upload build artifacts
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: nightly
|
||||
files: |
|
||||
${{ steps.artifacts.outputs.artifact }}
|
||||
|
||||
build_windows_x86-64:
|
||||
name: Publish binary builds for windows (x86-64)
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: 'true'
|
||||
- name: Download renamer
|
||||
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
|
||||
- name: Rename and collect artifacts
|
||||
id: artifacts
|
||||
shell: bash
|
||||
run: echo "::set-output name=artifact::$(sh ./target_rename.sh "x86_64-pc-windows-msvc" | head -n 1)"
|
||||
- name: Upload build artifacts
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: nightly
|
||||
files: |
|
||||
${{ steps.artifacts.outputs.artifact }}
|
File diff suppressed because it is too large
Load Diff
@ -1,19 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
cargo build --release --all-features
|
||||
|
||||
# install connector to system dir
|
||||
if [ ! -z "$1" ] && [ $1 = "--system" ]; then
|
||||
echo "installing connector system-wide in /usr/lib/memflow"
|
||||
if [[ ! -d /usr/lib/memflow ]]; then
|
||||
sudo mkdir /usr/lib/memflow
|
||||
fi
|
||||
sudo cp target/release/libmemflow_pcileech.so /usr/lib/memflow/libmemflow_pcileech.7.so
|
||||
fi
|
||||
|
||||
# install connector in user dir
|
||||
echo "installing connector for user in ~/.local/lib/memflow"
|
||||
if [[ ! -d ~/.local/lib/memflow ]]; then
|
||||
mkdir -p ~/.local/lib/memflow
|
||||
fi
|
||||
cp target/release/libmemflow_pcileech.so ~/.local/lib/memflow/libmemflow_pcileech.7.so
|
@ -1 +1 @@
|
||||
Subproject commit 7a8b693be0e750d548c6a38dd1864a360dac6db4
|
||||
Subproject commit 94d2abdb39c515790558feaff31cb4a65c3e1307
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue