Skip to content

Commit

Permalink
fix #2 Github CI and artefacts (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelson-numerical-software authored May 25, 2021
1 parent a52c99d commit 4a00460
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 45 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/nelson_module.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Nelson CI

on: [push]

jobs:
build:
runs-on: windows-latest
defaults:
run:
shell: cmd
timeout-minutes: 30
steps:
- name: Download Nelson v0.5.5 (win64)
run: |
$null = mkdir c:/install
(new-object net.webclient).DownloadFile("http://nelson.surge.sh/Nelson-0.5.5.1202-x86-64.exe", "C:\install\Nelson-x86-64.exe")
shell: powershell

- name: Install Nelson
run: |
C:/install/Nelson-x86-64.exe /SP- /SILENT /DIR="c:/install/Nelson"
- uses: actions/checkout@v2

- name: creates artifacts directory
run: |
$null = mkdir c:/install/artifacts
shell: powershell

- name: build and install module
run: |
"c:/install/Nelson/bin/x64/nelson-adv-cli" --noipc --quiet -e "nmm('install', getenv('GITHUB_WORKSPACE'));quit"
- name: package module
run: |
"c:/install/Nelson/bin/x64/nelson-adv-cli" --noipc --quiet -e "nmm('package', 'module_skeleton', 'c:/install/artifacts');quit"
- name: run tests
run: |
"c:/install/Nelson/bin/x64/nelson-adv-cli" --noipc --quiet -e "test_run('module_skeleton', 'all_tests', 'c:/install/artifacts/tests_results.xml');quit"
- name: run benchs
run: |
"c:/install/Nelson/bin/x64/nelson-adv-cli" --noipc --quiet -e "test_run('module_skeleton', 'benchs', 'c:/install/artifacts/benchs_results.xml');quit"
- uses: actions/upload-artifact@v1
with:
name: module_skeleton-github-action-artifacts
path: c:/install/artifacts/
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 2.1.0 (05/25/2021)

- [fix #2](https://github.com/Nelson-numerical-software/module_skeleton/issues/2) Github CI and artefacts.
- remove appveyor CI.
- add bench example.

# 2.0.0 (05/20/2021)

- uses validators functions,
Expand Down
44 changes: 0 additions & 44 deletions appveyor.yml

This file was deleted.

2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"module": "module_skeleton",
"title": "Module skeleton",
"summary": "Skeleton of a valid nelson package",
"version": "2.0.0",
"version": "2.1.0",
"platforms": "all",
"nelson": "<2.0.0",
"builtin": true,
Expand Down
13 changes: 13 additions & 0 deletions tests/bench_cpp_sum.nls
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
%=============================================================================
% Copyright (c) 2018-present Allan CORNET (Nelson)
%
% This file is released under the 3-clause BSD license. See COPYING-BSD.
%=============================================================================
if ~ismodule('module_skeleton')
run([fileparts(nfilename('fullpathext')), '/../loader.nls']);
end
%=============================================================================
tic();
R = cpp_sum(3, 4);
toc();
%=============================================================================

0 comments on commit 4a00460

Please sign in to comment.