Skip to content

Commit 451ecd2

Browse files
fix #2 github CI
* remove appveyor * fix #2 github CI (add benchs, tests, artefacts). * rename .yml
1 parent b6c2a31 commit 451ecd2

File tree

4 files changed

+69
-45
lines changed

4 files changed

+69
-45
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Nelson CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: windows-latest
8+
defaults:
9+
run:
10+
shell: cmd
11+
timeout-minutes: 30
12+
steps:
13+
- name: Download Nelson v0.5.5 (win64)
14+
run: |
15+
$null = mkdir c:/install
16+
(new-object net.webclient).DownloadFile("http://nelson.surge.sh/Nelson-0.5.5.1202-x86-64.exe", "C:\install\Nelson-x86-64.exe")
17+
18+
shell: powershell
19+
20+
- name: Install Nelson
21+
run: |
22+
C:/install/Nelson-x86-64.exe /SP- /SILENT /DIR="c:/install/Nelson"
23+
24+
- uses: actions/checkout@v2
25+
26+
- name: creates artifacts directory
27+
run: |
28+
$null = mkdir c:/install/artifacts
29+
shell: powershell
30+
31+
- name: build and install module
32+
run: |
33+
"c:/install/Nelson/bin/x64/nelson-adv-cli" --noipc --quiet -e "nmm('install', getenv('GITHUB_WORKSPACE'));quit"
34+
35+
- name: package module
36+
run: |
37+
"c:/install/Nelson/bin/x64/nelson-adv-cli" --noipc --quiet -e "nmm('package', 'module_skeleton_basic', 'c:/install/artifacts');quit"
38+
39+
- name: run tests
40+
run: |
41+
"c:/install/Nelson/bin/x64/nelson-adv-cli" --noipc --quiet -e "test_run('module_skeleton_basic', 'all_tests', 'c:/install/artifacts/tests_results.xml');quit"
42+
43+
- name: run benchs
44+
run: |
45+
"c:/install/Nelson/bin/x64/nelson-adv-cli" --noipc --quiet -e "test_run('module_skeleton_basic', 'benchs', 'c:/install/artifacts/benchs_results.xml');quit"
46+
47+
- uses: actions/upload-artifact@v1
48+
with:
49+
name: module_skeleton_basic-github-action-artifacts
50+
path: c:/install/artifacts/

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 2.1.0 (05/25/2021)
2+
3+
- [#2](https://github.com/Nelson-numerical-software/module_skeleton_basic/issues/2) add Github CI action for nelson skeleton basic
4+
- remove appveyor CI.
5+
- add bench example
6+
17
# 2.0.0 (05/20/2021)
28

39
- validators used,

appveyor.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

tests/bench_macro_sum.nls

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
%=============================================================================
2+
% Copyright (c) 2018-present Allan CORNET (Nelson)
3+
%
4+
% This file is released under the 3-clause BSD license. See COPYING-BSD.
5+
%=============================================================================
6+
if ~ismodule('module_skeleton_basic')
7+
run([fileparts(nfilename('fullpathext')), '/../loader.nls']);
8+
end
9+
%=============================================================================
10+
tic()
11+
r = macro_sum(3,5);
12+
toc
13+
%=============================================================================

0 commit comments

Comments
 (0)