Skip to content

Commit f6bfc1b

Browse files
committed
chore: setup repository with rust-vmm-ci/setup-repository.sh
Signed-off-by: Egor Lazarchuk <[email protected]>
1 parent 2264597 commit f6bfc1b

File tree

3 files changed

+45
-1
lines changed

3 files changed

+45
-1
lines changed

.github/dependabot.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,27 @@
11
version: 2
22
updates:
3+
4+
# We do not set open-pull-requests-limit, as sometimes
5+
# dependabot thinks the limit is hit without actually having
6+
# any PRs open. In reality, the configs below can only result
7+
# in at most one PR per package ecosyste manyway.
8+
# A monthly update of the rust-vmm-ci submodule
39
- package-ecosystem: gitsubmodule
410
directory: "/"
511
schedule:
612
interval: monthly
7-
open-pull-requests-limit: 10
13+
14+
# A monthly update to rust dependencies. These will be grouped,
15+
# e.g. one PR will contains updates for all dependencies.
16+
- package-ecosystem: cargo
17+
directory: "/"
18+
schedule:
19+
interval: monthly
20+
# Make it also update transitive dependencies in Cargo.lock
21+
allow:
22+
- dependency-type: "all"
23+
# Group all available updates into a group called "rust-dependencies"
24+
groups:
25+
rust-dependencies:
26+
patterns:
27+
- "*"

.github/workflows/publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish to crates.io
2+
3+
on:
4+
push:
5+
tags: ['v*'] # Triggers when pushing version tags
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
# environment: release # Optional: for enhanced security
11+
permissions:
12+
id-token: write # Required for OIDC token exchange
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: rust-lang/crates-io-auth-action@v1
16+
id: auth
17+
- run: |
18+
cd .
19+
cargo publish
20+
env:
21+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}

.platform

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
x86_64
2+
aarch64
3+
riscv64

0 commit comments

Comments
 (0)