File: azure-win-installer-upload.yml

package info (click to toggle)
neuron 8.2.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,768 kB
  • sloc: cpp: 149,571; python: 58,449; ansic: 50,329; sh: 3,510; xml: 213; pascal: 51; makefile: 35; sed: 5
file content (46 lines) | stat: -rw-r--r-- 1,612 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
steps:

  - task: PublishBuildArtifacts@1
    inputs:
      pathToPublish: '$(Build.SourcesDirectory)\nrn-nightly-AMD64.exe'
    displayName: 'Publish windows installer as build artifact'

  - task: UsePythonVersion@0
    inputs:
      versionSpec: '3.9'
    displayName: "Use System Python"

  - task: BatchScript@1
    inputs:
      filename: ci/win_install_neuron.cmd
    displayName: "Run Installer and launch .hoc association test"
    condition: succeeded()

  - task: BatchScript@1
    inputs:
      # temporarily disable rxd testing ( ci/win_test_installer.cmd <-> ci/win_test_installer_wo_rxd.cmd)
      # see https://github.com/neuronsimulator/nrn/issues/1522
      filename: ci/win_test_installer_wo_rxd.cmd
    displayName: "Test Installer"
    condition: succeeded()

  - task: GithubRelease@0
    inputs:
      gitHubConnection: neuronsimulator-installers
      repositoryName: neuronsimulator/installers
      action: edit
      # note : if previous release doesn't exist, as we are pushing
      # to different repository, we must need to provide commit id.
      target: '9d7b1e26717bd207f7ae6114f78f7ab7b958c998'
      tagSource: manual
      tag: nightly
      title: 'Nightly NEURON Developer Snapshot'
      releaseNotesSource: input
      releaseNotes: "Last NEURON Commit: $(Build.SourceVersionMessage)"
      isPreRelease: true
      assetUploadMode: replace
      addChangeLog: false
      assets: |
        $(Build.SourcesDirectory)\nrn-nightly-AMD64.exe
    displayName: 'Upload installer to GitHub'
    condition: and(succeeded(), in(variables['Build.Reason'], 'Manual', 'Schedule'))