Skip to content

Instantly share code, notes, and snippets.

@michaeltryby
Created June 23, 2021 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaeltryby/3d14a2205ec190a8644e6cdcd3bc2432 to your computer and use it in GitHub Desktop.
Save michaeltryby/3d14a2205ec190a8644e6cdcd3bc2432 to your computer and use it in GitHub Desktop.
GitHub Actions CI build for Win32 and Win64 swmm-solver
#
# build.yml - GitHub Actions CI build for Win32 and Win64 swmm-solver
#
# Created: June 23, 2021
# Updated:
#
# Author: Michael E. Tryby
# US EPA - ORD/CESER
#
name: Build
on:
push:
branches: build
jobs:
win_build-32:
runs-on: windows-2016
defaults:
run:
shell: cmd
working-directory: ci-tools/windows
env:
PROJECT: swmm
BUILD_HOME: build
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Checkout ci-tools
uses: actions/checkout@v2
with:
repository: michaeltryby/ci-tools
path: ci-tools
- name: Build and package
run: ./make.cmd /g "Visual Studio 15 2017"
- name: Upload artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
path: upload/
win_build-64:
runs-on: windows-2016
defaults:
run:
shell: cmd
working-directory: ci-tools/windows
env:
PROJECT: swmm
BUILD_HOME: build
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Checkout ci-tools
uses: actions/checkout@v2
with:
repository: michaeltryby/ci-tools
path: ci-tools
- name: Build and package
run: ./make.cmd /g "Visual Studio 15 2017 Win64"
- name: Upload artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
path: upload/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment