-
Notifications
You must be signed in to change notification settings - Fork 6
46 lines (40 loc) · 1022 Bytes
/
rust.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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