generated from PlexSheep/baserepo
Merge pull request 'devel maybe maybe maybe' (#48) from devel into master
Reviewed-on: #48 ci is so great
This commit is contained in:
commit
8d218e77d2
|
@ -12,9 +12,12 @@ jobs:
|
||||||
# added or changed files to the repository.
|
# added or changed files to the repository.
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: get repo
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
uses: actions/checkout@v4
|
||||||
- run: |
|
- name: install rust
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
- name: config custom registry
|
||||||
|
run: |
|
||||||
mkdir -p ~/.cargo/
|
mkdir -p ~/.cargo/
|
||||||
echo -e '[registry]
|
echo -e '[registry]
|
||||||
cscherr= "cscherr"
|
cscherr= "cscherr"
|
||||||
|
@ -23,9 +26,11 @@ jobs:
|
||||||
index = "sparse+https://git.cscherr.de/api/packages/PlexSheep/cargo/"
|
index = "sparse+https://git.cscherr.de/api/packages/PlexSheep/cargo/"
|
||||||
' > ~/.cargo/config.toml
|
' > ~/.cargo/config.toml
|
||||||
cat ~/.cargo/config.toml
|
cat ~/.cargo/config.toml
|
||||||
- uses: katyo/publish-crates@v2
|
- name: publish crates on git.cscherr.de
|
||||||
|
uses: katyo/publish-crates@v2
|
||||||
with:
|
with:
|
||||||
args: --registry cscherr --token ${{ secrets.CARGO_REGISTRY_TOKEN_CSCHERRDE }}
|
args: --registry cscherr --token="Bearer ${{ secrets.CARGO_REGISTRY_TOKEN_CSCHERRDE }}"
|
||||||
|
registry-token: "Bearer ${{ secrets.CARGO_REGISTRY_TOKEN_CSCHERRDE }}"
|
||||||
#- uses: katyo/publish-crates@v2
|
#- uses: katyo/publish-crates@v2
|
||||||
# with:
|
# with:
|
||||||
# args: --token ${{ secrets.CARGO_REGISTRY_TOKEN_CRATESIO }}
|
# args: --token ${{ secrets.CARGO_REGISTRY_TOKEN_CRATESIO }}
|
||||||
|
|
|
@ -13,19 +13,32 @@ jobs:
|
||||||
# added or changed files to the repository.
|
# added or changed files to the repository.
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: get repo
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
uses: actions/checkout@v4
|
||||||
- run: cargo check --all-features --all-targets
|
- name: install rust
|
||||||
- run: rustup component add rustfmt
|
uses: dtolnay/rust-toolchain@stable
|
||||||
- run: cargo fix --all-features --all-targets
|
run: rustup component add rustfmt
|
||||||
- run: cargo fmt --all
|
- name: config custom registry
|
||||||
- run: cargo test --all-features --all-targets
|
run: |
|
||||||
- uses: stefanzweifel/git-auto-commit-action@v5
|
mkdir -p ~/.cargo/
|
||||||
|
echo -e '[registry]
|
||||||
|
cscherr= "cscherr"
|
||||||
|
|
||||||
|
[registries.cscherr]
|
||||||
|
index = "sparse+https://git.cscherr.de/api/packages/PlexSheep/cargo/"
|
||||||
|
' > ~/.cargo/config.toml
|
||||||
|
cat ~/.cargo/config.toml
|
||||||
|
- name: cargo check
|
||||||
|
run: cargo check --all-features --all-targets
|
||||||
|
- name: cargo fix
|
||||||
|
run: cargo fix --all-features --all-targets
|
||||||
|
- name: cargo fmt
|
||||||
|
run: cargo fmt --all
|
||||||
|
- name: cargo test
|
||||||
|
run: cargo test --all-features --all-targets
|
||||||
|
- name: commit back to repository
|
||||||
|
uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
with:
|
with:
|
||||||
# Optional. Commit message for the created commit.
|
# Optional. Commit message for the created commit.
|
||||||
# Defaults to "Apply automatic changes"
|
# Defaults to "Apply automatic changes"
|
||||||
commit_message: automatic cargo CI changes
|
commit_message: automatic cargo CI changes
|
||||||
commit_user_name: Gitea CI
|
|
||||||
commit_user_email: noreply@cscherr.de
|
|
||||||
commit_author: Gitea CI <noreply@cscherr.de>
|
|
||||||
|
|
||||||
|
|
18
Cargo.toml
18
Cargo.toml
|
@ -31,8 +31,8 @@ categories = [
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
anyhow = "1.0.79"
|
anyhow = "1.0.79"
|
||||||
thiserror = "1.0.56"
|
thiserror = "1.0.56"
|
||||||
libpt-log = { version = "0.2.3", path = "../libpt-log" }
|
libpt-log = { version = "0.2.5", path = "../libpt-log" }
|
||||||
libpt-bintols = { version = "0.2.3", ath = "../libpt-bintols" }
|
libpt-bintols = { version = "0.2.5", ath = "../libpt-bintols" }
|
||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "libpt"
|
name = "libpt"
|
||||||
|
@ -71,10 +71,10 @@ crate-type = [
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
libpt-bintols = { version = "0.2.3", path = "members/libpt-bintols" }
|
libpt-bintols = { version = "0.2.5", path = "members/libpt-bintols" }
|
||||||
libpt-core = { version = "0.2.3", path = "members/libpt-core" }
|
libpt-core = { version = "0.2.5", path = "members/libpt-core" }
|
||||||
libpt-hedu = { version = "0.2.3", path = "members/libpt-hedu" }
|
libpt-hedu = { version = "0.2.5", path = "members/libpt-hedu" }
|
||||||
libpt-log = { version = "0.2.3", path = "members/libpt-log" }
|
libpt-log = { version = "0.2.5", path = "members/libpt-log" }
|
||||||
libpt-math = { version = "0.2.3", path = "members/libpt-math" }
|
libpt-math = { version = "0.2.5", path = "members/libpt-math" }
|
||||||
libpt-ccc = { version = "0.2.3", path = "members/libpt-ccc" }
|
libpt-ccc = { version = "0.2.5", path = "members/libpt-ccc" }
|
||||||
libpt-net = { version = "0.2.3", path = "members/libpt-net" }
|
libpt-net = { version = "0.2.5", path = "members/libpt-net" }
|
||||||
|
|
Reference in New Issue