try Windows Perl CI #10
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: ccache | |
uses: hendrikmuhs/[email protected] | |
with: | |
key: ${{ github.job }}-${{ matrix.os }} | |
- 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 | |
- name: Show Config | |
shell: cmd | |
run: | | |
cd perl-5.40.1 | |
.\perl.exe -V | |
.\perl.exe -e "use Config; print Config::config_sh" |