Compare commits

..

No commits in common. "main" and "v0.1.0" have entirely different histories.
main ... v0.1.0

4 changed files with 59 additions and 13 deletions

View File

@ -1,8 +0,0 @@
[registry]
default = "gitea"
[registries.gitea]
index = "https://gitea.squi.fr/Rust/_cargo-index.git"
[net]
git-fetch-with-cli = true

View File

@ -13,7 +13,7 @@ jobs:
steps:
- name: Check-out
uses: actions/checkout@v3
uses: actions/checkout@v2
- name: Install stable toolchain
uses: https://github.com/actions-rs/toolchain@v1
@ -27,6 +27,21 @@ jobs:
with:
command: check
- name: Install nightly toolchain with clippy available
uses: https://github.com/actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: clippy
- name: Run cargo clippy
uses: https://github.com/actions-rs/cargo@v1
continue-on-error: true # WARNING: only for this example, remove it!
with:
command: clippy
args: -- -D warnings
- name: Test
run: cargo test

View File

@ -0,0 +1,42 @@
name: Rust-release
on:
push:
tags:
- '*'
jobs:
build-release:
runs-on: ubuntu-latest
steps:
- name: Check-out
uses: actions/checkout@v3
- name: Install stable toolchain
uses: https://github.com/actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Run cargo check
uses: https://github.com/actions-rs/cargo@v1
with:
command: check
- name: Test
run: cargo test
- name: Build
run: cargo build --release
- name: Release
id: use-go-action
uses: https://gitea.com/actions/release-action@main
with:
files: ./target/release/hangman
title: auto-release
body: This is an automated release.
pre-release: true
api-key: '${{secrets.RELEASE_TOKEN}}'

View File

@ -4,10 +4,7 @@ A hangman. I was bored and needed to get into Rust again.
# How ?
Install it:
```
cargo install --git https://gitea.squi.fr/Rust/hangman.git
```
just cargo run it.
```
IM A BORED SYSADMIN