-
-
Notifications
You must be signed in to change notification settings - Fork 40
56 lines (48 loc) · 1.39 KB
/
ci.yaml
File metadata and controls
56 lines (48 loc) · 1.39 KB
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
name: Continuous Integration
on:
pull_request:
branches:
- main
jobs:
build-docker:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build service
run: docker build .
build-windows:
name: Build Windows executable
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Perl for Windows build
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: "5.40"
- name: Install Perl dependencies for Windows build
run: |
cpanm --notest PAR::Packer
cpanm --notest Compress::Zlib
cpanm --notest Encode
cpanm --notest File::Basename
cpanm --notest File::Copy
cpanm --notest Getopt::Std
cpanm --notest HTTP::Cookies
cpanm --notest URI
cpanm --notest URI::Escape
cpanm --notest LWP::UserAgent
cpanm --notest LWP::ConnCache
cpanm --notest POSIX
cpanm --notest Time::Local
cpanm --notest Time::Piece
cpanm --notest JSON
- name: Build Windows executable
run: pp -o zap2xml.exe zap2xml.pl
- name: Cache once for testing
uses: actions/upload-artifact@v4
with:
path: zap2xml.exe
retention-days: 1