Skip to content

Commit e8d6919

Browse files
committed
done
1 parent 86af99e commit e8d6919

19 files changed

Lines changed: 1869 additions & 84 deletions

File tree

.github/workflows/build.yml

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
env:
1313
CARGO_TERM_COLOR: always
14-
BINARY_NAME: change_me
14+
BINARY_NAME: chirno
1515

1616
jobs:
1717
lint:
@@ -30,11 +30,8 @@ jobs:
3030
env-vars: "CARGO RUST"
3131
cache-on-failure: true
3232

33-
- name: test
34-
run: cargo test --tests --bins --examples # instruct some packages if needed
35-
3633
- name: lint
37-
run: cargo clippy # instruct some packages if needed
34+
run: cargo clippy
3835

3936
build-and-release:
4037
name: Build and Release
@@ -46,38 +43,38 @@ jobs:
4643
# linux x64
4744
- os: ubuntu-latest
4845
target: x86_64-unknown-linux-gnu
49-
artifact_name: change_me
50-
asset_name: change_me-linux-amd64
46+
artifact_name: chirno
47+
asset_name: chirno-linux-amd64
5148

5249
# linux arm
5350
- os: ubuntu-latest
5451
target: aarch64-unknown-linux-gnu
55-
artifact_name: change_me
56-
asset_name: change_me-linux-arm
52+
artifact_name: chirno
53+
asset_name: chirno-linux-arm
5754

5855
# windows x64
5956
- os: windows-latest
6057
target: x86_64-pc-windows-gnu
61-
artifact_name: change_me.exe
62-
asset_name: change_me-windows-amd64.exe
58+
artifact_name: chirno.exe
59+
asset_name: chirno-windows-amd64.exe
6360

6461
# windows arm
6562
- os: windows-latest
6663
target: aarch64-pc-windows-msvc
67-
artifact_name: change_me.exe
68-
asset_name: change_me-windows-arm.exe
64+
artifact_name: chirno.exe
65+
asset_name: chirno-windows-arm.exe
6966

7067
# macos x64
7168
- os: macos-latest
7269
target: x86_64-apple-darwin
73-
artifact_name: change_me
74-
asset_name: change_me-macos-amd64
70+
artifact_name: chirno
71+
asset_name: chirno-macos-amd64
7572

7673
# macos arm
7774
- os: macos-latest
7875
target: aarch64-apple-darwin
79-
artifact_name: change_me
80-
asset_name: change_me-macos-arm
76+
artifact_name: chirno
77+
asset_name: chirno-macos-arm
8178

8279
steps:
8380
- uses: actions/checkout@v4
@@ -144,12 +141,12 @@ jobs:
144141
uses: softprops/action-gh-release@v2
145142
with:
146143
files: |
147-
change_me-linux-amd64/change_me-linux-amd64
148-
change_me-windows-amd64.exe/change_me-windows-amd64.exe
149-
change_me-macos-amd64/change_me-macos-amd64
150-
change_me-linux-arm/change_me-linux-arm
151-
change_me-windows-arm.exe/change_me-windows-arm.exe
152-
change_me-macos-arm/change_me-macos-arm
144+
chirno-linux-amd64/chirno-linux-amd64
145+
chirno-windows-amd64.exe/chirno-windows-amd64.exe
146+
chirno-macos-amd64/chirno-macos-amd64
147+
chirno-linux-arm/chirno-linux-arm
148+
chirno-windows-arm.exe/chirno-windows-arm.exe
149+
chirno-macos-arm/chirno-macos-arm
153150
draft: false
154151
prerelease: false
155152
generate_release_notes: true

.github/workflows/crates.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy to crates.io
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Install stable Rust
18+
uses: dtolnay/rust-toolchain@stable
19+
with:
20+
components: clippy
21+
22+
- name: Cache Rust dependencies
23+
uses: Swatinem/rust-cache@v2.7.7
24+
with:
25+
env-vars: "CARGO RUST"
26+
cache-on-failure: true
27+
28+
- name: lint
29+
run: cargo clippy
30+
31+
create-release:
32+
needs: lint
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v4
36+
- uses: dtolnay/rust-toolchain@stable
37+
- name: push
38+
run: |
39+
"cargo publish -v --workspace --token ${{ secrets.CRATES_TOKEN }}"

.github/workflows/lint.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@ name: Lint
33
on:
44
push:
55
branches:
6-
# change for your branch name
76
- main
87

98
env:
109
CARGO_TERM_COLOR: always
11-
BINARY_NAME: change_me
1210

1311
jobs:
1412
lint:
@@ -27,8 +25,5 @@ jobs:
2725
env-vars: "CARGO RUST"
2826
cache-on-failure: true
2927

30-
- name: test
31-
run: cargo test --tests --bins --examples # instruct some packages if needed
32-
3328
- name: lint
34-
run: cargo clippy # instruct some packages if needed
29+
run: cargo clippy

Cargo.toml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
11

22
[workspace]
3-
members = ["example"]
3+
members = ["cirno", "cirno_store"]
44
resolver = "2"
55

66
[workspace.package]
7-
version = "0.0.1"
7+
version = "1.0.0"
88
edition = "2024"
99
authors = ["TOwInOK <60252419+TOwInOK@users.noreply.github.com>"]
10-
repository = "change_me"
11-
license = "MIT" #"Apache-2.0"
10+
repository = "https://github.com/TOwInOK/cirno"
11+
license = "MIT"
12+
description = "Motivational phrases in Japanese and Russian to brighten your day"
13+
keywords = ["motivation", "japanese", "russian", "phrases", "cli"]
14+
categories = ["command-line-utilities"]
15+
readme = "README.md"
1216

1317
[workspace.dependencies]
14-
# serde = { version = "^1", features = ["derive"] }
15-
# serde_json = { version = "1" }
16-
# ron = "^0.10"
17-
# tracing = "^0.1"
18-
# tracing-subscriber = "^0.3"
19-
# anyhow = "^1"
20-
# tokio = { version = "^1", features = ["full"] }
21-
# thiserror = "^2"
2218

2319

2420
[profile.dev]

0 commit comments

Comments
 (0)