Skip to content

trashbin terminal user interface #111

trashbin terminal user interface

trashbin terminal user interface #111

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@v4
with:
name: neuronek-cli-${{ matrix.target }}
path: |
target/${{ matrix.target }}/release/neuronek-cli
target/${{ matrix.target }}/release/neuronek-cli.exe
nix_build:
name: "Nix Build"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v24
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Build with Nix
run: nix build
- name: Upload build result
uses: actions/upload-artifact@v4
with:
name: nix-build-result
path: ./result