-
Notifications
You must be signed in to change notification settings - Fork 127
102 lines (91 loc) · 2.74 KB
/
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
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
93
94
95
96
97
98
99
100
101
102
name: Rust
on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, dev ]
env:
CARGO_TERM_COLOR: always
jobs:
build_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Update Rust
run: rustup update stable
- name: Build Debug
working-directory: ./agent
run: cargo build
env:
LITCRYPT_ENCRYPT_KEY: offensivenotion
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: offensive_notion_linux_amd64_debug
path: agent/target/debug/offensive_notion
- name: Build Release
working-directory: ./agent
run: cargo build --release
env:
LITCRYPT_ENCRYPT_KEY: offensivenotion
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: offensive_notion_linux_amd64
path: agent/target/release/offensive_notion
build_mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Update Rust
run: rustup update stable
- name: Build Debug
working-directory: ./agent
run: cargo build
env:
LITCRYPT_ENCRYPT_KEY: offensivenotion
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: offensive_notion_darwin_amd64_debug
path: agent/target/debug/offensive_notion
- name: Build Release
working-directory: ./agent
run: cargo build --release --target x86_64-apple-darwin
env:
LITCRYPT_ENCRYPT_KEY: offensivenotion
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: offensive_notion_darwin_amd64
path: agent/target/x86_64-apple-darwin/release/offensive_notion
build_windows:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Update Rust
run: rustup update stable
- name: Install MingW
run: sudo apt install -y mingw-w64
- name: Add Windows Triple
run: rustup target add x86_64-pc-windows-gnu
- name: Build Debug
working-directory: ./agent
run: cargo build --target x86_64-pc-windows-gnu
env:
LITCRYPT_ENCRYPT_KEY: offensivenotion
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: offensive_notion_win_64_debug.exe
path: agent/target/x86_64-pc-windows-gnu/debug/offensive_notion.exe
- name: Build Release
working-directory: ./agent
run: cargo build --release --target x86_64-pc-windows-gnu
env:
LITCRYPT_ENCRYPT_KEY: offensivenotion
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: offensive_notion_win_64.exe
path: agent/target/x86_64-pc-windows-gnu/release/offensive_notion.exe