Skip to content

Commit

Permalink
Windows Installer Test via Github Actions (#822)
Browse files Browse the repository at this point in the history
* Windows Installer Test via Github Actions

* Travis quick return for github actions

* Add badge to README.md

Co-authored-by: Pramod Kumbhar <pramod.kumbhar@epfl.ch>
  • Loading branch information
alexsavulescu and pramodk authored Nov 13, 2020
1 parent 22a6f40 commit a03d70e
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 3 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Windows Installer

on:
push:
branches:
- master
pull_request:
branches:
- master

env:
MSYS2_ROOT: C:\msys64

jobs:
WindowsInstaller:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2

- name: Download Dependencies
run: |
.\nrn\ci\win_download_deps.cmd
shell: powershell
working-directory: ${{runner.workspace}}

- name: Install Dependencies
run: .\nrn\ci\win_install_deps.cmd
shell: powershell
working-directory: ${{runner.workspace}}

- name: Build and Create Installer
run: |
rm.exe C:\WINDOWS\system32\bash.EXE
%MSYS2_ROOT%\usr\bin\bash -lc "$BUILD_SOURCESDIRECTORY/ci/win_build_cmake.sh"
shell: cmd
working-directory: ${{runner.workspace}}\nrn
env:
BUILD_SOURCESDIRECTORY: ${{runner.workspace}}\nrn

- name: Test Installer
run: .\ci\win_test_installer.cmd
shell: cmd
working-directory: ${{runner.workspace}}\nrn
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ os:
before_install:
- |
if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
if ! git diff --name-only ${TRAVIS_COMMIT_RANGE} | grep -qvE '(\.md)$|^(Copyright)$|^(docs/)|^(ci/)|^(azure-pipelines.yml)$' ; then
echo "Skipping CI build since we have docs-only/Azure CI changes for ${TRAVIS_COMMIT_RANGE} :"
if ! git diff --name-only ${TRAVIS_COMMIT_RANGE} | grep -qvE '(\.md)$|^(Copyright)$|^(docs/)|^(ci/)|^(azure-pipelines.yml)$|^(\.github/workflows/)' ; then
echo "Skipping CI build since we have docs/Azure/GithubActions only changes for ${TRAVIS_COMMIT_RANGE} :"
git diff --name-only ${TRAVIS_COMMIT_RANGE}
exit
fi
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://api.travis-ci.org/neuronsimulator/nrn.svg?branch=master)](https://travis-ci.org/neuronsimulator/nrn) [![Build Status](https://dev.azure.com/neuronsimulator/nrn/_apis/build/status/neuronsimulator.nrn?branchName=master)](https://dev.azure.com/neuronsimulator/nrn/_build/latest?definitionId=1&branchName=master)
[![Build Status](https://api.travis-ci.org/neuronsimulator/nrn.svg?branch=master)](https://travis-ci.org/neuronsimulator/nrn) [![Build Status](https://dev.azure.com/neuronsimulator/nrn/_apis/build/status/neuronsimulator.nrn?branchName=master)](https://dev.azure.com/neuronsimulator/nrn/_build/latest?definitionId=1&branchName=master) [![Actions Status](https://github.com/neuronsimulator/nrn/workflows/Windows%20Installer/badge.svg)](https://github.com/neuronsimulator/nrn/actions)

NEURON is a simulator for models of neurons and networks of neuron.
See [http://neuron.yale.edu](http://neuron.yale.edu) for installers, source code,
Expand Down

0 comments on commit a03d70e

Please sign in to comment.