Skip to content

Commit 2c4239c

Browse files
committed
try Windows Perl CI
1 parent bf1047b commit 2c4239c

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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+
cd
20+
ls
21+
- name: Build
22+
shell: cmd
23+
run: |
24+
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
25+
dir %TEMP%
26+
cd %TEMP%\perl-5.40.1\win32
27+
cd
28+
dir
29+
nmake CCTYPE=MSVC142 CFG=Debug INST_TOP=D:\perl
30+
- name: Show Config
31+
shell: cmd
32+
run: |
33+
cd %TEMP%\perl-5.40.1
34+
.\perl.exe -V
35+
- name: Install
36+
shell: cmd
37+
run: |
38+
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
39+
cd %TEMP%\perl-5.40.1\win32
40+
nmake CCTYPE=MSVC142 CFG=Debug INST_TOP=D:\perl install
41+
- name: Add to start of path
42+
shell: cmd
43+
run: | # any whitespace in `echo` command line is kept
44+
echo D:\perl\bin>%TEMP%\p.txt
45+
type %GITHUB_PATH% >>%TEMP%\p.txt
46+
type %TEMP%\p.txt >%GITHUB_PATH%
47+
- name: Show installed config
48+
shell: cmd
49+
run: |
50+
path
51+
perl -V

0 commit comments

Comments
 (0)