-
-
Notifications
You must be signed in to change notification settings - Fork 31
ci: add windows exe build #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
8a6969b
ci: add windows exe build
jef 06704f1
ci: build exe and update nightly
jef e0da370
ci: remove ifs
jef dc61a7d
ci: use 5.40
jef 3d47419
ci: cache for testing
jef f9a9866
ci: update deps and build
jef fb75c9f
ci: install sub::Util
jef f4a3ef0
ci: use cpanm
jef a08b49b
ci: old
jef b40cfaf
ci: entrypoint for windows, build on windows machine
jef 5905a3a
Update ci.yaml
jef 6c911cf
Update ci.yaml
jef 0d7aa4c
Merge branch 'main' into ci/windows-build
jef File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,66 @@ | ||
name: Continuous Integration | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
build-docker: | ||
name: Build Docker | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build service | ||
run: docker build . | ||
|
||
build-windows: | ||
name: Build Windows executable | ||
runs-on: windows-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 | ||
cpanm --notest Sub::Util | ||
|
||
- name: Build Windows executable | ||
run: pp -o zap2xml.exe zap2xml.pl | ||
|
||
- name: Copy entrypoint.bat | ||
run: | | ||
mkdir dist | ||
copy .zap2xml-example dist\.zap2xml-example | ||
copy entrypoint.bat dist\entrypoint.bat | ||
copy zap2xml.exe dist\zap2xml.exe | ||
shell: cmd | ||
|
||
- name: Upload Windows artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: zap2xml-windows | ||
path: dist/ | ||
retention-days: 1 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@echo off | ||
:loop | ||
set DATESTR=%DATE% %TIME% | ||
echo Running zap2xml.exe at %DATESTR% | ||
zap2xml.exe %OPT_ARGS% | ||
echo Last run time: %DATESTR% | ||
echo Will run again in %SLEEPTIME% seconds | ||
REM Default sleep time if not set | ||
if "%SLEEPTIME%"=="" set SLEEPTIME=43200 | ||
powershell -Command "Start-Sleep -Seconds %SLEEPTIME%" | ||
goto loop |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.