-
Notifications
You must be signed in to change notification settings - Fork 4
92 lines (87 loc) · 2.75 KB
/
build.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: build
on:
push:
branches: [ master ]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
submodules: true
- name: prepare IDA SDK
env:
IDASDK90_URL: ${{ secrets.IDASDK90_URL }}
IDASDK90_PASSWORD: ${{ secrets.IDASDK90_PASSWORD }}
run: |
curl -o "${{ runner.temp }}/idasdk90.zip" -L "$IDASDK90_URL"
unzip -d "${{ runner.temp }}" -P "$IDASDK90_PASSWORD" "${{ runner.temp }}/idasdk90.zip"
- name: rustfmt
run: cargo fmt --check
- name: clippy
env:
IDASDKDIR: "${{ runner.temp }}/idasdk90"
run: cargo clippy -- -D warnings
- name: build
env:
IDASDKDIR: "${{ runner.temp }}/idasdk90"
run: cargo build
build-macos:
runs-on: macOS-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
submodules: true
- name: prepare IDA SDK
env:
IDASDK90_URL: ${{ secrets.IDASDK90_URL }}
IDASDK90_PASSWORD: ${{ secrets.IDASDK90_PASSWORD }}
run: |
curl -o "${{ runner.temp }}/idasdk90.zip" -L "$IDASDK90_URL"
unzip -d "${{ runner.temp }}" -P "$IDASDK90_PASSWORD" "${{ runner.temp }}/idasdk90.zip"
- name: rustfmt
run: cargo fmt --check
- name: clippy
env:
IDASDKDIR: "${{ runner.temp }}/idasdk90"
run: cargo clippy -- -D warnings
- name: build
env:
IDASDKDIR: "${{ runner.temp }}/idasdk90"
run: cargo build
build-windows:
runs-on: windows-latest
steps:
- name: install clang/llvm
uses: KyleMayes/install-llvm-action@e0a8dc9cb8a22e8a7696e8a91a4e9581bec13181
with:
version: "18.1.8"
directory: "${{ runner.temp }}/llvm-18"
- name: configure clang/llvm environment
run: echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV
- name: checkout
uses: actions/checkout@v4
with:
submodules: true
- name: prepare IDA SDK
env:
IDASDK90_URL: ${{ secrets.IDASDK90_URL }}
IDASDK90_PASSWORD: ${{ secrets.IDASDK90_PASSWORD }}
run: |
curl -o "${{ runner.temp }}/idasdk90.zip" -L $env:IDASDK90_URL
unzip -d "${{ runner.temp }}" -P $env:IDASDK90_PASSWORD "${{ runner.temp }}/idasdk90.zip"
- name: rustfmt
run: cargo fmt --check
- name: clippy
env:
IDASDKDIR: "${{ runner.temp }}/idasdk90"
run: cargo clippy -- -D warnings
- name: build
env:
IDASDKDIR: "${{ runner.temp }}/idasdk90"
run: cargo build