ci: add windows exe build #23
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build-docker: | |
name: Build Docker | |
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 --install --notest PAR PAR::Dist PAR::Packer sub::Util | |
- name: Build Windows executable | |
run: pp -M sub::Util -o zap2xml.exe zap2xml.pl | |
- name: Cache once for testing | |
uses: actions/upload-artifact@v4 | |
with: | |
path: zap2xml.exe | |
retention-days: 1 |