Skip to content

add initial terminal user interface #70

add initial terminal user interface

add initial terminal user interface #70

Workflow file for this run

name: main
on:
pull_request:
branches:
- main
- next
- trunk
- release/*
- feature/*
- bugfix/*
- hotfix/*
- chore/*
push:
branches:
- next
- main
- trunk
- release/*
- feature/*
- bugfix/*
- hotfix/*
- chore/*
release:
types:
- released
- prereleased
jobs:
cargo_lint:
name: "lint"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: x86_64-unknown-linux-gnu
override: true
cargo_build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: windows-latest
target: x86_64-pc-windows-msvc
- os: macos-latest
target: x86_64-apple-darwin
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: ${{ matrix.target }}
override: true
- name: Run test
run: cargo test
- name: Build application
run: cargo build --release --target ${{ matrix.target }}
- name: Save artifact
uses: actions/upload-artifact@v3
with:
name: neuronek-cli-${{ matrix.target }}
path: |
target/${{ matrix.target }}/release/neuronek-cli
target/${{ matrix.target }}/release/neuronek-cli.exe
# Disabled until automatic versioning will be configured
# cargo_release:
# name: "release"
# runs-on: "ubuntu-latest"
# steps:
# - uses: actions/checkout@v3
# - uses: actions-rs/toolchain@v1
# with:
# toolchain: nightly
# target: "x86_64-unknown-linux-gnu"
# override: true
# - name: Install cargo plugins
# run: >
# cargo install cargo-quickinstall
# cargo-quickinstall cargo-release
#
# - name: Run cargo-release
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: cargo release alpha