Skip to content

try Windows Perl CI #14

try Windows Perl CI

try Windows Perl CI #14

Workflow file for this run

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"