try Windows Perl CI #14
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: msvc | |
on: | |
push: | |
branches: | |
- '*' | |
tags-ignore: | |
- '*' | |
pull_request: | |
jobs: | |
msvc: | |
runs-on: windows-latest | |
steps: | |
- name: Get/extract | |
shell: bash | |
run: | | |
curl https://cpan.metacpan.org/src/5.0/perl-5.40.1.tar.gz -o perl.tgz | |
tar zxvf perl.tgz | |
- name: Build | |
shell: cmd | |
run: | | |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 | |
cd perl-5.40.1\win32 | |
nmake CCTYPE=MSVC142 CFG=Debug INST_TOP=D:\perl | |
- name: Show Config | |
shell: cmd | |
run: | | |
cd perl-5.40.1 | |
.\perl.exe -V | |
.\perl.exe -e "use Config; print Config::config_sh" | |
- name: Install | |
shell: cmd | |
run: | | |
cd perl-5.40.1 | |
nmake CCTYPE=MSVC142 CFG=Debug INST_TOP=D:\perl install | |
- name: Add to start of path | |
shell: cmd | |
run: echo D:\perl\bin;%path% > $GITHUB_PATH | |
- name: Show installed config | |
shell: cmd | |
run: | | |
perl -V | |
perl -e "use Config; print Config::config_sh" |