-
Notifications
You must be signed in to change notification settings - Fork 11
86 lines (70 loc) · 2.3 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
name: dsV2Gshark Build
on:
workflow_dispatch:
jobs:
build-windows:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- name: Install Wireshark 4.2.6
run: |
choco install wireshark --version=4.2.6 -y
- name: Build v2gLibs for Wireshark 4.2.6
shell: cmd
working-directory: ./V2G_Libraries
run: |
build_for_ws.bat "C:\Program Files\Wireshark"
- name: Install Wireshark latest
run: |
choco uninstall wireshark -y
choco install wireshark -y
- name: Build v2gLibs for Wireshark latest
shell: cmd
working-directory: ./V2G_Libraries
run: |
build_for_ws.bat "C:\Program Files\Wireshark"
- name: Build Installer
run: Build_Installer.bat
shell: cmd
working-directory: ./Installer
- name: Upload Win64 Installer
uses: actions/upload-artifact@v4
with:
name: dsV2Gshark_Installer_Win_x64
path: |
./Installer/Output/*
- name: Prepare Artifact Directory
run: |
mkdir artifact_dir
cp ./V2G_Libraries/v2gLib/bin/* ./artifact_dir/
mkdir artifact_dir/plugins
cp ./Wireshark/plugins/* ./artifact_dir/plugins/
cp ./LICENSE ./artifact_dir/dsV2Gshark_LICENSE.txt
cp ./README.md ./artifact_dir/dsV2Gshark_README.txt
- name: Upload Win64 Files
uses: actions/upload-artifact@v4
with:
name: dsV2Gshark_Files_Win_x86_64
path: artifact_dir/*
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Libraries
run: |
chmod +x ./build_all_linux.sh
./build_all_linux.sh
working-directory: ./V2G_Libraries/
- name: Prepare Artifact Directory
run: |
mkdir artifact_dir
cp ./V2G_Libraries/v2gLib/bin/* ./artifact_dir/
mkdir artifact_dir/plugins
cp ./Wireshark/plugins/* ./artifact_dir/plugins/
cp ./LICENSE ./artifact_dir/dsV2Gshark_LICENSE.txt
cp ./README.md ./artifact_dir/dsV2Gshark_README.txt
- name: Upload Linux Files
uses: actions/upload-artifact@v4
with:
name: dsV2Gshark_Files_Linux_x86_64
path: artifact_dir/*