pe-parser 0.7.0

A blazing fast PE Parser with pretty print
Documentation
name: Build & Test

on:
  workflow_dispatch:
  push:
    branches: [ "master" ]
  pull_request:
    branches: [ "master" ]

env:
  CARGO_TERM_COLOR: always

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest

    steps:
    - name: Clone repo
      uses: actions/checkout@v3
    - name: Build
      run: cargo build --verbose

  test:
    name: Test
    runs-on: ubuntu-latest
    
    steps:
    - name: Clone repo
      uses: actions/checkout@v3
    - name: Clone test PE repo
      uses: actions/checkout@v3
      with:
        repository: cubiclesoft/windows-pe-artifact-library
        path: tests/pe
    - name: Remove 16-bit and DOS binaries
      run: |
        rm -rf tests/pe/16_ne \
        rm -rf tests/pe/dos
    - name: Remove troublemakers
      run: |
        rm -rf tests/pe/32_pe/32_pe_data_dir_architecture.dat \
        rm -rf tests/pe/32_pe/32_pe_data_dir_resources_external_rva.dat \
        rm -rf tests/pe/32_pe/32_pe_invalid_offset.dat
    - name: Run tests
      run: cargo test --verbose