|
| 1 | +name: smoke-windows-msvc |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - '*' |
| 7 | + tags-ignore: |
| 8 | + - '*' |
| 9 | + pull_request: |
| 10 | + |
| 11 | +jobs: |
| 12 | + perl: |
| 13 | + |
| 14 | + runs-on: windows-latest |
| 15 | + |
| 16 | + steps: |
| 17 | + - name: Get/extract |
| 18 | + shell: bash |
| 19 | + run: | |
| 20 | + cd $TEMP |
| 21 | + curl https://cpan.metacpan.org/src/5.0/perl-5.40.1.tar.gz -o perl.tgz |
| 22 | + tar zxvf perl.tgz |
| 23 | + - name: Build |
| 24 | + shell: cmd |
| 25 | + run: | |
| 26 | + call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 |
| 27 | + cd /d %TEMP%\perl-5.40.1\win32 |
| 28 | + nmake CCTYPE=MSVC142 CFG=Debug INST_TOP=D:\perl |
| 29 | + - name: Show config of built |
| 30 | + shell: cmd |
| 31 | + run: | |
| 32 | + cd /d %TEMP%\perl-5.40.1 |
| 33 | + .\perl.exe -V |
| 34 | + - name: Install |
| 35 | + shell: cmd |
| 36 | + run: | |
| 37 | + call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 |
| 38 | + cd /d %TEMP%\perl-5.40.1\win32 |
| 39 | + nmake CCTYPE=MSVC142 CFG=Debug INST_TOP=D:\perl installbare |
| 40 | + - name: Add to start of path |
| 41 | + shell: cmd |
| 42 | + run: | # any whitespace in `echo` command line is kept |
| 43 | + echo D:\perl\bin>%TEMP%\p.txt |
| 44 | + type %GITHUB_PATH% >>%TEMP%\p.txt |
| 45 | + type %TEMP%\p.txt >%GITHUB_PATH% |
| 46 | + - name: Show config of installed |
| 47 | + shell: cmd |
| 48 | + run: | |
| 49 | + path |
| 50 | + perl -V |
| 51 | + - run: git config --global core.autocrlf false |
| 52 | + - uses: actions/checkout@master |
| 53 | + with: |
| 54 | + fetch-depth: 10 |
| 55 | + - name: Find out environment |
| 56 | + shell: cmd |
| 57 | + run: | |
| 58 | + call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 |
| 59 | + dir D:\perl |
| 60 | + path |
| 61 | + perl -MIPC::Cmd -E "say IPC::Cmd::can_run(qq{cl})" |
| 62 | + perl -MIPC::Cmd -E "say IPC::Cmd::can_run(qq{link})" |
| 63 | + - name: Configure |
| 64 | + shell: cmd |
| 65 | + run: | |
| 66 | + perl Makefile.PL |
| 67 | + - name: Build |
| 68 | + shell: cmd |
| 69 | + run: | |
| 70 | + call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 |
| 71 | + nmake |
| 72 | + - name: Run Tests |
| 73 | + shell: cmd |
| 74 | + run: | |
| 75 | + call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 |
| 76 | + nmake test |
| 77 | + - name: Run disttest |
| 78 | + shell: cmd |
| 79 | + run: | |
| 80 | + call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 |
| 81 | + nmake disttest NOECHO= |
0 commit comments