mirror of
https://github.com/ilammy/msvc-dev-cmd.git
synced 2026-09-06 21:57:19 +08:00
6f493f9a67
By a public request, let's support aliases for architecture parameters. Treat "arch: Win32" as "x86" and "Win64" as "x64". Test this on CI just in case x86 breaks or something.
53 lines
1.1 KiB
YAML
53 lines
1.1 KiB
YAML
name: msvc-dev-cmd
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
- release/*
|
|
schedule:
|
|
- cron: '0 6 * * *'
|
|
|
|
jobs:
|
|
test:
|
|
name: default
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Check out source code
|
|
uses: actions/checkout@v2
|
|
- name: Download Internet
|
|
run: npm install
|
|
- name: Enable Developer Command Prompt
|
|
uses: ./
|
|
- 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 install
|
|
- run: npm audit --audit-level=moderate
|
|
alias-arch:
|
|
name: arch aliases
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Check out source code
|
|
uses: actions/checkout@v2
|
|
- name: Download Internet
|
|
run: npm install
|
|
- name: Enable Developer Command Prompt
|
|
uses: ./
|
|
with:
|
|
arch: Win32
|
|
- name: Compile and run some C code
|
|
shell: cmd
|
|
run: |
|
|
cl.exe hello.c
|
|
hello.exe
|