-
Notifications
You must be signed in to change notification settings - Fork 5
55 lines (47 loc) · 1.69 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
name: Rust
on: [push, pull_request]
jobs:
build:
# Skip building pull requests from the same repository
if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-2019]
env:
BUILD_TYPE: Release
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Rust toolchain
run: |
rustup set auto-self-update disable
rustup toolchain install beta --profile minimal
rustup default beta
- uses: Swatinem/rust-cache@6720f05bc48b77f96918929a9019fb2203ff71f8
- name: Build
run: |
set LIBCLANG_PATH=C:\Program Files\LLVM\bin
cargo build --release --all-features
mkdir bin\x64\plugins
copy target\release\x64dbg_ext.dll bin\x64\plugins\ext.dp64
shell: cmd
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ github.event.repository.name }}-${{ matrix.os }}
path: bin/*
- name: Compress artifacts
uses: vimtor/action-zip@d78955ce8ce0b145b9f777076e53e1869efcadf6
with:
files: bin/
dest: ${{ github.event.repository.name }}-${{ github.sha }}.zip
- name: Release
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
prerelease: ${{ !startsWith(github.ref, 'refs/tags/v') || contains(github.ref, '-pre') }}
files: ${{ github.event.repository.name }}-${{ github.sha }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}