forked from Perl-Toolchain-Gang/ExtUtils-MakeMaker
-
Notifications
You must be signed in to change notification settings - Fork 1
87 lines (83 loc) · 2.82 KB
/
Copy pathsmoke-windows-msvc.yml
File metadata and controls
87 lines (83 loc) · 2.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: smoke-windows-msvc
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
jobs:
perl:
runs-on: windows-latest
steps:
- name: CPUs
shell: bash
run: |
export SYSTEM_CORES=$( powershell -NoProfile -Command "& { Get-WmiObject Win32_Processor | Select-Object -Property NumberOfCores }" | perl -0777 -ne 'print $1, "\n" while /(\d+)/g' );
echo "SYSTEM_CORES=$SYSTEM_CORES" >> $GITHUB_ENV
echo "HARNESS_OPTIONS=j$SYSTEM_CORES" >> $GITHUB_ENV
- name: Get/extract
shell: bash
run: |
cd $TEMP
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 /d %TEMP%\perl-5.40.1\win32
nmake CCTYPE=MSVC142 CFG=Debug INST_TOP=D:\perl
- name: Show config of built
shell: cmd
run: |
cd /d %TEMP%\perl-5.40.1
.\perl.exe -V
- name: Install
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
cd /d %TEMP%\perl-5.40.1\win32
nmake CCTYPE=MSVC142 CFG=Debug INST_TOP=D:\perl installbare
- name: Add to start of path
shell: cmd
run: | # any whitespace in `echo` command line is kept
echo D:\perl\bin>%TEMP%\p.txt
type %GITHUB_PATH% >>%TEMP%\p.txt
type %TEMP%\p.txt >%GITHUB_PATH%
- name: Show config of installed
shell: cmd
run: |
path
perl -V
- run: git config --global core.autocrlf false
- uses: actions/checkout@master
with:
fetch-depth: 10
- name: Find out environment
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
dir D:\perl
path
perl -MIPC::Cmd -E "say IPC::Cmd::can_run(qq{cl})"
perl -MIPC::Cmd -E "say IPC::Cmd::can_run(qq{link})"
- name: Configure
shell: cmd
run: |
perl Makefile.PL
- name: Build
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
nmake
- name: Run Tests
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
nmake test
- name: Run disttest
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
nmake disttest NOECHO=