r3bl-org/r3bl-open-core

[all] Enable CI/CD using `run.nu`

Closed this issue · 0 comments

Related issue: #120

More info on github actions & rust

More information about nushell's gh action

From: #120 (comment)

We use this GitHub Action, created by one of our maintainers, to use nushell in our CI. https://github.com/marketplace/actions/setup-nu.

Just dropping by to say Hi! 👋🏻 from nushell.

Using unofficial actions-rs

This snippet allows the use of nu in Github Actions environment.

name: Rust CI

on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Set up Rust
      uses: actions-rs/toolchain@v1
      with:
        toolchain: stable
        override: true
    - name: Install Nu
      run: cargo install nu
    - name: Build
      run: cargo build

Other actions

Related

Consider using cargo binstall to speed up builds in ci/cd

Tracking issue

Related issue

Once the fixes to r3bl_rs_utils_core is made (for logging), update Cargo.toml & use the
release version of this crate. Then publish to crates.io.