Skip to content

Merge pull request #304 from e-perl-NOAA/main #365

Merge pull request #304 from e-perl-NOAA/main

Merge pull request #304 from e-perl-NOAA/main #365

name: windows-2019-64bit
on: [push]
jobs:
build:
runs-on: windows-2019
steps:
- uses: actions/checkout@main
- name: clean
run: |
pushd "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build" && call vcvars64.bat && popd
nmake clean
shell: cmd
- name: build
run: |
pushd "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build" && call vcvars64.bat && popd
nmake
nmake shared
shell: cmd
- name: build g++-8
run: |
utilities\\make
shell: cmd
- name: Artifact
uses: actions/upload-artifact@v1
with:
name: admb_vs2019
path: build\\admb
- name: debug
run: |
pushd "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build" && call vcvars64.bat && popd
nmake DEBUG=yes
nmake shared DEBUG=yes
shell: cmd
- name: Artifact
uses: actions/upload-artifact@v1
with:
name: admb_vs2019_debug
path: build\\admb
- name: gtests
run: |
pushd "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build" && call vcvars64.bat && popd
nmake
working-directory: tests\\gtests
shell: cmd
- name: tests
run: |
pushd "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build" && call vcvars64.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(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build" && call vcvars64.bat && popd
pushd src && nmake CXXFLAGS=/analyze DEBUG=yes objects && popd
shell: cmd