mirror of
https://github.com/ilammy/msvc-dev-cmd.git
synced 2026-09-07 06:07:19 +08:00
73375e968b
Some time ago GitHub has introduced an alternative version of Windows virtual environment. One of those is possibly untested in this repo. Let's test both of them. Audit tasks and side tracks are still using "windows-latest" because we don't particularly care about them. However, main tests should be run against both versions. You can find currently supported environments here: https://github.com/actions/virtual-environments/
34 lines
720 B
YAML
34 lines
720 B
YAML
name: msvc-dev-cmd (release)
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- release/*
|
|
schedule:
|
|
- cron: '0 6 * * *'
|
|
|
|
jobs:
|
|
test:
|
|
name: release
|
|
runs-on: ${{ matrix.windows }}
|
|
strategy:
|
|
matrix:
|
|
windows: [windows-2016, windows-2019]
|
|
steps:
|
|
- name: Setup Developer Command Prompt
|
|
uses: ilammy/msvc-dev-cmd@v1
|
|
- name: Check out source code
|
|
uses: actions/checkout@v2
|
|
- name: Compile and run some C code
|
|
shell: cmd
|
|
run: |
|
|
cl.exe hello.c
|
|
hello.exe
|
|
audit:
|
|
name: npm audit
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Check out source code
|
|
uses: actions/checkout@v2
|
|
- run: npm audit --audit-level=moderate
|