Skip to content

Commit

Permalink
2
Browse files Browse the repository at this point in the history
  • Loading branch information
limitcool committed Jan 9, 2024
1 parent 989ad98 commit f3e518d
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 35 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ documentation = "https://docs.rs/nyar"
homepage = "https://github.com/limitcool/nyar"
repository = "https://github.com/limitcool/nyar"
keywords = ["background", "schedule", "task"]
description = "nyar is a task management program written in Rust, which allows you to run and manage various tasks in the background, such as scheduled tasks, start tasks, restart tasks, etc."
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ tasks: # 任务列表

nyar 提供了一个简洁的命令行界面,让您可以轻松地控制和查看任务的状态和输出。nyar 支持以下命令:

- `ls`: 列出所有任务的信息,包括任务名,状态,进程 ID,开始时间,停止时间,退出码等
- `ls`: 列出所有任务的信息。
- `new <name> <command> <schedule> <run_on_startup> <restart_after_stop> <enabled>`: 创建一个新的任务,并根据参数设置任务的属性。参数的含义和配置文件中的相同。
- `stop <name>`: 停止指定的任务,参数是任务名。
- `start <name>`: 启动指定的任务,参数是任务名。
Expand Down
74 changes: 40 additions & 34 deletions workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- "v[0-9]+.[0-9]+.[0-9]+"
## - release

env:
Expand All @@ -18,38 +18,44 @@ jobs:
strategy:
fail-fast: false # don't fail other jobs if one fails
matrix:
build: [x86_64-linux, aarch64-linux,x86_64-macos, x86_64-windows, aarch64-macos] #, x86_64-win-gnu, win32-msvc 去除x86_64-linux-musl
build: [
x86_64-linux,
# aarch64-linux,
# x86_64-macos,
x86_64-windows,
# aarch64-macos,
] #, x86_64-win-gnu, win32-msvc 去除x86_64-linux-musl
include:
- build: x86_64-linux
os: ubuntu-20.04
rust: stable
target: x86_64-unknown-linux-gnu
cross: false
- build: x86_64-linux-musl
os: ubuntu-latest
rust: stable
target: x86_64-unknown-linux-musl
cross: true
- build: aarch64-linux
os: ubuntu-20.04
rust: stable
target: aarch64-unknown-linux-gnu
cross: true
- build: x86_64-macos
os: macos-latest
rust: stable
target: x86_64-apple-darwin
cross: false
- build: x86_64-windows
os: windows-2019
rust: stable
target: x86_64-pc-windows-msvc
cross: false
- build: aarch64-macos
os: macos-latest
rust: stable
target: aarch64-apple-darwin
cross: false
- build: x86_64-linux
os: ubuntu-20.04
rust: stable
target: x86_64-unknown-linux-gnu
cross: false
- build: x86_64-linux-musl
os: ubuntu-latest
rust: stable
target: x86_64-unknown-linux-musl
cross: true
- build: aarch64-linux
os: ubuntu-20.04
rust: stable
target: aarch64-unknown-linux-gnu
cross: true
- build: x86_64-macos
os: macos-latest
rust: stable
target: x86_64-apple-darwin
cross: false
- build: x86_64-windows
os: windows-2019
rust: stable
target: x86_64-pc-windows-msvc
cross: false
- build: aarch64-macos
os: macos-latest
rust: stable
target: aarch64-apple-darwin
cross: false
# - build: x86_64-win-gnu
# os: windows-2019
# rust: stable-x86_64-gnu
Expand Down Expand Up @@ -158,7 +164,7 @@ jobs:
# cp LICENSE README.md tmp/$pkgname
mv bins-$platform/$BIN_NAME$exe tmp/$pkgname
chmod +x tmp/$pkgname/$BIN_NAME$exe
mv tmp/$pkgname/$BIN_NAME$exe dist/
mv tmp/$pkgname/$BIN_NAME$exe dist/$pkgname$exe
done
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
Expand All @@ -172,4 +178,4 @@ jobs:
- name: Extract version
id: extract-version
run: |
printf "::set-output name=%s::%s\n" tag-name "${GITHUB_REF#refs/tags/}"
printf "::set-output name=%s::%s\n" tag-name "${GITHUB_REF#refs/tags/}"

0 comments on commit f3e518d

Please sign in to comment.