Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
f380ce2a76 | |||
51e8b54e14 | |||
|
482759c940 | ||
6d39a7ec5b | |||
c3d8c780f3 | |||
265e7fc434 | |||
17eb29020d | |||
a6993465af | |||
|
d81399fb53 | ||
|
02c7379972 | ||
|
7a6598bf8f | ||
|
eeede48897 |
8
.cargo/config.toml
Normal file
8
.cargo/config.toml
Normal file
@ -0,0 +1,8 @@
|
||||
[registry]
|
||||
default = "gitea"
|
||||
|
||||
[registries.gitea]
|
||||
index = "https://gitea.squi.fr/Rust/_cargo-index.git"
|
||||
|
||||
[net]
|
||||
git-fetch-with-cli = true
|
@ -13,7 +13,7 @@ jobs:
|
||||
steps:
|
||||
|
||||
- name: Check-out
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install stable toolchain
|
||||
uses: https://github.com/actions-rs/toolchain@v1
|
||||
@ -27,21 +27,6 @@ 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
|
||||
|
||||
|
@ -1,42 +0,0 @@
|
||||
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}}'
|
Loading…
x
Reference in New Issue
Block a user