mirror of
https://github.com/ilammy/msvc-dev-cmd.git
synced 2026-09-07 06:07:19 +08:00
Allow repeated invocation (#37)
* Workaround for repeated invocations As noted in the comment, repeated invocations of this action might have caused environment variables to overflow. This cute hack avoid this, allowing to reconfigure environment. * Note caveats in README While this approach mostly works, I still have reservations so let's leave some cautionary notes. * Test repeated reconfiguration on CI Well, let's build our "Hello, world!" four times, for four different architectures, because why not.
This commit is contained in:
@@ -18,13 +18,42 @@ jobs:
|
||||
uses: actions/checkout@v2
|
||||
- name: Download Internet
|
||||
run: npm install
|
||||
- name: Enable Developer Command Prompt
|
||||
- name: Enable Developer Command Prompt (amd64)
|
||||
uses: ./
|
||||
- name: Compile and run some C code
|
||||
with:
|
||||
arch: amd64
|
||||
- name: Compile and run some C code (amd64)
|
||||
shell: cmd
|
||||
run: |
|
||||
cl.exe hello.c
|
||||
hello.exe
|
||||
- name: Enable Developer Command Prompt (amd64_x86)
|
||||
uses: ./
|
||||
with:
|
||||
arch: amd64_x86
|
||||
- name: Compile and run some C code (x86)
|
||||
shell: cmd
|
||||
run: |
|
||||
cl.exe hello.c
|
||||
hello.exe
|
||||
- name: Enable Developer Command Prompt (amd64_arm)
|
||||
uses: ./
|
||||
with:
|
||||
arch: amd64_arm
|
||||
- name: Compile some C code (arm)
|
||||
shell: cmd
|
||||
run: |
|
||||
cl.exe hello.c
|
||||
dumpbin /headers hello.exe
|
||||
- name: Enable Developer Command Prompt (amd64_arm64)
|
||||
uses: ./
|
||||
with:
|
||||
arch: amd64_arm64
|
||||
- name: Compile some C code (arm64)
|
||||
shell: cmd
|
||||
run: |
|
||||
cl.exe hello.c
|
||||
dumpbin /headers hello.exe
|
||||
audit:
|
||||
name: npm audit
|
||||
runs-on: windows-latest
|
||||
|
||||
Reference in New Issue
Block a user