-
Notifications
You must be signed in to change notification settings - Fork 11
70 lines (57 loc) · 1.93 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
name: dsV2Gshark Build
on:
workflow_dispatch:
jobs:
build-windows:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: choco install wireshark
- name: Build All
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/CertificateInfos/bin/* ./artifact_dir/
cp ./V2G_Libraries/V2GDecoder/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/CertificateInfos/bin/* ./artifact_dir/
cp ./V2G_Libraries/V2GDecoder/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/*