Compare commits

..

No commits in common. "6a98c899ffbd153fd742cba7cee3d862c7e9c8fd" and "16879b913feac607a58d722feb656c1c1a665d1d" have entirely different histories.

2 changed files with 17 additions and 35 deletions

View file

@ -12,12 +12,9 @@ jobs:
# added or changed files to the repository. # added or changed files to the repository.
contents: write contents: write
steps: steps:
- name: get repo - uses: actions/checkout@v4
uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable
- name: install rust - run: |
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"
@ -26,11 +23,9 @@ 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
- name: publish crates on git.cscherr.de - uses: katyo/publish-crates@v2
uses: katyo/publish-crates@v2
with: with:
args: --registry cscherr args: --registry cscherr --token ${{ 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 }}

View file

@ -13,32 +13,19 @@ jobs:
# added or changed files to the repository. # added or changed files to the repository.
contents: write contents: write
steps: steps:
- name: get repo - uses: actions/checkout@v4
uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable
- name: install rust - run: cargo check --all-features --all-targets
uses: dtolnay/rust-toolchain@stable - run: rustup component add rustfmt
run: rustup component add rustfmt - run: cargo fix --all-features --all-targets
- name: config custom registry - run: cargo fmt --all
run: | - run: cargo test --all-features --all-targets
mkdir -p ~/.cargo/ - uses: stefanzweifel/git-auto-commit-action@v5
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>