Skip to content

Commit

Permalink
6 add linux support ci (#7)
Browse files Browse the repository at this point in the history
* fix #6 Github CI linux

* use 0.6.3 on Windows
  • Loading branch information
Nelson-numerical-software authored Mar 28, 2022
1 parent edef66f commit a7c4507
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 9 deletions.
54 changes: 48 additions & 6 deletions .github/workflows/nelson_module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,59 @@ name: Nelson CI
on: [push]

jobs:
build:
runs-on: windows-latest

ubuntu:
name: Ubuntu-20.04 Focal
runs-on: ubuntu-20.04
timeout-minutes: 30

steps:
- name: Install Nelson as Snap
run: |
sudo snap install nelson
sudo snap connect nelson:home
sudo snap connect nelson:removable-media
- uses: actions/checkout@v2

- name: creates artifacts directory
run: |
mkdir -p /home/runner/install/artifacts
- name: build and install module
run: |
nelson -cli --quiet -e "nmm('install', getenv('GITHUB_WORKSPACE'));quit"
- name: package module
run: |
nelson -cli --quiet -e "nmm('package', 'module_skeleton', '/home/runner/install/artifacts');quit"
- name: run tests
run: |
nelson -cli --quiet -e "test_run('module_skeleton', 'all_tests', '/home/runner/install/artifacts/tests_results.xml');quit"
- name: run benchs
run: |
nelson -cli --quiet -e "test_run('module_skeleton', 'benchs', '/home/runner/install/artifacts/benchs_results.xml');quit"
- uses: actions/upload-artifact@v1
with:
name: module_skeleton-github-action-artifacts-linux
path: /home/runner/install/artifacts/

windows_64:
name: Windows 64 bits
runs-on: windows-2022
timeout-minutes: 30
defaults:
run:
shell: cmd
timeout-minutes: 30

steps:
- name: Download Nelson v0.5.9 (win64)
- name: Download Nelson v0.6.3 (win64)
run: |
$null = mkdir c:/install
(new-object net.webclient).DownloadFile("https://github.com/Nelson-numerical-software/nelson/releases/download/v0.5.9/Nelson-0.5.9.1457-x86-64.exe", "C:\install\Nelson-x86-64.exe")
(new-object net.webclient).DownloadFile("https://github.com/Nelson-numerical-software/nelson/releases/download/v0.6.3/Nelson-0.6.3.1844-x86-64.exe", "C:\install\Nelson-x86-64.exe")
shell: powershell

- name: Install Nelson
Expand Down Expand Up @@ -48,3 +89,4 @@ jobs:
with:
name: module_skeleton-github-action-artifacts
path: c:/install/artifacts/

6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# 3.1.0 (UNRELEASED)
# 3.1.0 (03/26/2022)

- addpath with `-frozen' argument (recommended when package is not in development).
- [#6](https://github.com/Nelson-numerical-software/module_skeleton_basic/issues/6) add Github CI action for nelson skeleton basic on linux

- `addpath` with `-frozen` (recommended when package is not in development).

# 3.0.0 (06/24/2021)

Expand Down
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": "3.0.0",
"version": "3.1.0",
"platforms": "all",
"nelson": "<2.0.0",
"builtin": true,
Expand Down

0 comments on commit a7c4507

Please sign in to comment.