This repository has been archived on 2024-10-16. You can view files and clone it, but cannot push or open issues or pull requests.
4 changed files with
71 additions and
6 deletions
|
|
@ -21,8 +21,6 @@ jobs:
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
rustup component add rustfmt
|
|
|
|
rustup component add rustfmt
|
|
|
|
rustup component add clippy
|
|
|
|
rustup component add clippy
|
|
|
|
- name: install python
|
|
|
|
|
|
|
|
run: apt update && apt install libpython3-dev -y
|
|
|
|
|
|
|
|
- name: config custom registry
|
|
|
|
- name: config custom registry
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
mkdir -p ~/.cargo/
|
|
|
|
mkdir -p ~/.cargo/
|
|
|
@ -45,4 +43,4 @@ jobs:
|
|
|
|
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: "ci: automatic cargo CI changes"
|
|
|
@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
version: 2
|
|
|
|
|
|
|
|
updates:
|
|
|
|
|
|
|
|
- package-ecosystem: "github-actions"
|
|
|
|
|
|
|
|
directory: "/"
|
|
|
|
|
|
|
|
# Check for updates every Monday
|
|
|
|
|
|
|
|
schedule:
|
|
|
|
|
|
|
|
interval: "weekly"
|
|
|
@ -1,10 +1,16 @@
|
|
|
|
name: cargo devel CI
|
|
|
|
name: Rust CI
|
|
|
|
on:
|
|
|
|
on:
|
|
|
|
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
branches:
|
|
|
|
|
|
|
|
- '**'
|
|
|
|
push:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
branches:
|
|
|
|
- '**'
|
|
|
|
- '**'
|
|
|
|
# - '!master'
|
|
|
|
# - '!master'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
env:
|
|
|
|
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
CI:
|
|
|
|
CI:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
@ -42,10 +48,10 @@ jobs:
|
|
|
|
- name: cargo fmt
|
|
|
|
- name: cargo fmt
|
|
|
|
run: cargo fmt --all
|
|
|
|
run: cargo fmt --all
|
|
|
|
- name: cargo test
|
|
|
|
- name: cargo test
|
|
|
|
run: cargo test --all-features --all-targets --workspace && cargo test --all-features --workspace --doc
|
|
|
|
run: cargo test --all-features --all-targets --workspace
|
|
|
|
- name: commit back to repository
|
|
|
|
- name: commit back to repository
|
|
|
|
uses: stefanzweifel/git-auto-commit-action@v5
|
|
|
|
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: "ci: automatic Rust CI changes"
|
|
|
|
|
|
@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
name: Release-plz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
|
|
|
|
pull-requests: write
|
|
|
|
|
|
|
|
contents: write
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
|
|
|
push:
|
|
|
|
|
|
|
|
branches:
|
|
|
|
|
|
|
|
- master
|
|
|
|
|
|
|
|
- main
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Release unpublished packages.
|
|
|
|
|
|
|
|
release-plz-release:
|
|
|
|
|
|
|
|
name: Release-plz release
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Checkout repository
|
|
|
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Install Rust toolchain
|
|
|
|
|
|
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
|
|
|
|
- name: Run release-plz
|
|
|
|
|
|
|
|
uses: MarcoIeni/release-plz-action@v0.5
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
command: release
|
|
|
|
|
|
|
|
env:
|
|
|
|
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Create a PR with the new versions and changelog, preparing the next release.
|
|
|
|
|
|
|
|
release-plz-pr:
|
|
|
|
|
|
|
|
name: Release-plz PR
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
|
|
|
|
group: release-plz-${{ github.ref }}
|
|
|
|
|
|
|
|
cancel-in-progress: false
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Checkout repository
|
|
|
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Install Rust toolchain
|
|
|
|
|
|
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
|
|
|
|
- name: Run release-plz
|
|
|
|
|
|
|
|
uses: MarcoIeni/release-plz-action@v0.5
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
command: release-pr
|
|
|
|
|
|
|
|
env:
|
|
|
|
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|