Skip to content

Commit d344afb

Browse files
committed
Merge branch 'develop' of github.com:Kristories/myssh into develop
2 parents ada0872 + e0ba351 commit d344afb

5 files changed

Lines changed: 106 additions & 1 deletion

File tree

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "cargo"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"

.github/workflows/pre-release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Pre Release
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Build
20+
run: cargo build --verbose
21+
- name: Run tests
22+
run: cargo test --verbose
23+
- name: Check fmt
24+
run: cargo fmt --all -- --check

.github/workflows/release.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
env:
8+
REGISTRY: ghcr.io
9+
IMAGE_NAME: ${{ github.repository }}
10+
11+
jobs:
12+
create-release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: taiki-e/create-gh-release-action@v1
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
20+
upload-assets:
21+
strategy:
22+
matrix:
23+
include:
24+
# - target: aarch64-unknown-linux-gnu
25+
# os: ubuntu-latest
26+
# - target: aarch64-apple-darwin
27+
# os: macos-latest
28+
- target: x86_64-unknown-linux-gnu
29+
os: ubuntu-latest
30+
- target: x86_64-apple-darwin
31+
os: macos-latest
32+
# - target: x86_64-pc-windows-gnu
33+
# os: windows-latest
34+
runs-on: ${{ matrix.os }}
35+
steps:
36+
- uses: actions/checkout@v3
37+
- uses: taiki-e/upload-rust-binary-action@v1
38+
with:
39+
include: LICENSE,README.md
40+
bin: myssh
41+
# (optional) On which platform to distribute the `.tar.gz` file.
42+
# [default value: unix]
43+
# [possible values: all, unix, windows, none]
44+
tar: unix
45+
# (optional) On which platform to distribute the `.zip` file.
46+
# [default value: windows]
47+
# [possible values: all, unix, windows, none]
48+
zip: windows
49+
# (optional) Target triple, default is host triple.
50+
target: ${{ matrix.target }}
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Test
2+
3+
on: [push]
4+
5+
jobs:
6+
test_job:
7+
runs-on: ubuntu-latest
8+
name: Testing
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: Kristories/cargo-test@v1.0.0

Cargo.toml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
[package]
22
name = "myssh"
3+
description = "Checking for existing SSH keys"
34
version = "0.0.1"
5+
authors = ["Wahyu Kristianto <w.kristories@gmail.com>"]
6+
license = "MIT OR Apache-2.0"
47
edition = "2021"
58

69
[dependencies]
710
cursive = "0.20"
8-
regex = "1"
11+
regex = "1"
12+
13+
[profile.release]
14+
debug = false
15+
opt-level = 3
16+
lto = true
17+
18+
[profile.dev]
19+
opt-level = 1
20+
overflow-checks = false

0 commit comments

Comments
 (0)