Skip to content

move to nelson-lang organization #24

move to nelson-lang organization

move to nelson-lang organization #24

Workflow file for this run

name: Nelson CI
on: [push]
jobs:
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@v3
- 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
steps:
- name: Download Nelson v0.7.2 (win64)
run: |
$null = mkdir c:/install
(new-object net.webclient).DownloadFile("https://github.com/nelson-lang/nelson/releases/download/v0.7.2/Nelson-0.7.2.2774-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@v3
- 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/