Skip to content

Commit 65bb46d

Browse files
committed
try Windows Perl CI
1 parent bf1047b commit 65bb46d

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: msvc
2+
on:
3+
push:
4+
branches:
5+
- '*'
6+
tags-ignore:
7+
- '*'
8+
pull_request:
9+
jobs:
10+
msvc:
11+
runs-on: windows-latest
12+
steps:
13+
- name: Get/extract
14+
shell: bash
15+
run: |
16+
cd $TEMP
17+
curl https://cpan.metacpan.org/src/5.0/perl-5.40.1.tar.gz -o perl.tgz
18+
tar zxvf perl.tgz
19+
- name: Build
20+
shell: cmd
21+
run: |
22+
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
23+
cd /d %TEMP%\perl-5.40.1\win32
24+
nmake CCTYPE=MSVC142 CFG=Debug INST_TOP=D:\perl
25+
- name: Show config of built
26+
shell: cmd
27+
run: |
28+
cd /d %TEMP%\perl-5.40.1
29+
.\perl.exe -V
30+
- name: Install
31+
shell: cmd
32+
run: |
33+
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
34+
cd /d %TEMP%\perl-5.40.1\win32
35+
nmake CCTYPE=MSVC142 CFG=Debug INST_TOP=D:\perl install
36+
- name: Add to start of path
37+
shell: cmd
38+
run: | # any whitespace in `echo` command line is kept
39+
echo D:\perl\bin>%TEMP%\p.txt
40+
type %GITHUB_PATH% >>%TEMP%\p.txt
41+
type %TEMP%\p.txt >%GITHUB_PATH%
42+
- name: Show config of installed
43+
shell: cmd
44+
run: |
45+
path
46+
perl -V

0 commit comments

Comments
 (0)