Merge pull request #304 from e-perl-NOAA/main #693
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: windows-vs2022-32bit | |
on: [push] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: clean | |
run: | | |
pushd "%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build" && call vcvars32.bat && popd | |
nmake clean | |
shell: cmd | |
- name: build | |
run: | | |
pushd "%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build" && call vcvars32.bat && popd | |
nmake | |
nmake shared | |
shell: cmd | |
- name: Artifact | |
uses: actions/upload-artifact@v1 | |
with: | |
name: admb_vs2022_32bit | |
path: build\\admb | |
- name: debug | |
run: | | |
pushd "%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build" && call vcvars32.bat && popd | |
nmake DEBUG=yes | |
nmake shared DEBUG=yes | |
shell: cmd | |
- name: Artifact | |
uses: actions/upload-artifact@v1 | |
with: | |
name: admb_vs2022_debug_32bit | |
path: build\\admb | |
- name: gtests | |
run: | | |
pushd "%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build" && call vcvars32.bat && popd | |
nmake | |
working-directory: tests\\gtests | |
shell: cmd | |
- name: tests | |
run: | | |
pushd "%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build" && call vcvars32.bat && popd | |
pushd tests && nmake examples && popd | |
pushd tests && nmake outputs.txt && popd | |
shell: cmd | |
- name: Artifact | |
uses: actions/upload-artifact@v1 | |
with: | |
name: outputs | |
path: outputs.txt | |
- name: analyze | |
run: | | |
pushd "%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build" && call vcvars32.bat && popd | |
pushd src && nmake CXXFLAGS=/analyze DEBUG=yes objects && popd | |
shell: cmd |