-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #855 from 4t145/fix-deps-version
prepare to release bios-iam package
- Loading branch information
Showing
83 changed files
with
764 additions
and
672 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Publish bios-iam crate | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'release-*' | ||
|
||
jobs: | ||
release-all: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Init rust environment | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
components: rustfmt, clippy | ||
- uses: davidB/rust-cargo-make@v1 | ||
|
||
- name: Cache rust | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Check format bios-basic | ||
run: cargo fmt -p bios-basic -- --check | ||
- name: Check format bios-iam | ||
run: cargo fmt -p bios-iam -- --check | ||
- name: Check clippy bios-basic | ||
run: cargo clippy -p bios-basic --all-features | ||
- name: Check clippy bios-basic | ||
run: cargo clippy -p bios-basic --no-default-features | ||
- name: Check clippy bios-iam | ||
run: cargo clippy -p bios-iam --all-features | ||
- name: Cargo login z | ||
run: cargo login ${{ secrets.CRATES_TOKEN }} | ||
- name: Package and Release | ||
if: ${{ startsWith(github.ref, 'refs/tags/release') }} | ||
run: cargo make publish-bios-iam | ||
- name: Free Disk Space (Ubuntu) | ||
uses: jlumbroso/free-disk-space@main | ||
with: | ||
# this might remove tools that are actually needed, | ||
# if set to "true" but frees about 6 GB | ||
tool-cache: false | ||
|
||
# all of these default to true, but feel free to set to | ||
# "false" if necessary for your workflow | ||
docker-images: false | ||
swap-storage: false | ||
android: true | ||
dotnet: true | ||
haskell: true | ||
large-packages: true | ||
|
||
- name: Upload to codecov.io | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
token: ${{secrets.CODECOV_TOKEN}} | ||
|
||
- name: Archive code coverage results | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: code-coverage-report | ||
path: cobertura.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ members = [ | |
] | ||
resolver = "2" | ||
[workspace.package] | ||
version = "0.1.0" | ||
version = "0.2.0" | ||
authors = [ | ||
"gudaoxuri <[email protected]>", | ||
"hermitCode <[email protected]>", | ||
|
@@ -54,7 +54,7 @@ serde = { version = "1", features = ["derive"] } | |
serde_json = { version = "1" } | ||
async-trait = { version = "0.1" } | ||
lazy_static = { version = "1" } | ||
itertools = { version = "0" } | ||
itertools = { version = "0.13" } | ||
fancy-regex = { version = "0" } | ||
run_script = { version = "0.10" } | ||
rust_decimal = { version = "1" } | ||
|
@@ -63,19 +63,21 @@ testcontainers-modules = { version = "0.11", features = ["redis"] } | |
strum = { version = "0.26", features = ["derive"] } | ||
# tardis | ||
tardis = { version = "0.1.0-rc.17" } | ||
# tardis = { path = "../tardis/tardis" } | ||
# tardis = { version = "0.2.0", path = "../tardis/tardis" } | ||
# tardis = { git = "https://github.com/ideal-world/tardis.git", rev = "9cc9b3e" } | ||
# asteroid-mq = { git = "https://github.com/4t145/asteroid-mq.git", rev = "d59c64d" } | ||
asteroid-mq = { git = "https://github.com/4t145/asteroid-mq.git", rev = "83a6643" } | ||
asteroid-mq-sdk = { git = "https://github.com/4t145/asteroid-mq.git", rev = "83a6643" } | ||
# asteroid-mq = { git = "https://github.com/4t145/asteroid-mq.git", rev = "83a6643" } | ||
asteroid-mq = { version = "0.1.0-alpha.3" } | ||
# asteroid-mq-sdk = { git = "https://github.com/4t145/asteroid-mq.git", rev = "83a6643" } | ||
asteroid-mq-sdk = { version = "0.1.0-alpha.3" } | ||
#spacegate | ||
|
||
# spacegate-shell = { path = "../spacegate/crates/shell", features = [ | ||
# spacegate-shell = { version = "0.2.0", path = "../spacegate/crates/shell", features = [ | ||
# "cache", | ||
# "k8s", | ||
# "ext-axum", | ||
# ] } | ||
spacegate-shell = { git = "https://github.com/ideal-world/spacegate.git", branch = "master", features = [ | ||
spacegate-shell = { version="0.2.0-alpha.2", features = [ | ||
"cache", | ||
"k8s", | ||
"ext-axum", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# ref: https://sagiegurari.github.io/cargo-make/ | ||
[env] | ||
CARGO_MAKE_PROJECT_VERSION = "0.2.0" | ||
PUBLISH_SCRIPT = "build-scripts/publish.sh" | ||
|
||
[tasks.package-bios-basic] | ||
workspace = false | ||
command = "cargo" | ||
args = ["package", "-p", "bios-basic"] | ||
|
||
[tasks.publish-bios-basic] | ||
dependencies = ["publish-bios-sdk-invoke", "package-bios-basic"] | ||
workspace = false | ||
command = "bash" | ||
args = ["${PUBLISH_SCRIPT}", "${CARGO_MAKE_PROJECT_VERSION}", "bios-basic"] | ||
|
||
[tasks.package-bios-iam] | ||
workspace = false | ||
command = "cargo" | ||
args = ["package", "-p", "bios-iam"] | ||
|
||
[tasks.publish-bios-iam] | ||
dependencies = ["publish-bios-basic"] | ||
workspace = false | ||
command = "bash" | ||
args = ["${PUBLISH_SCRIPT}", "${CARGO_MAKE_PROJECT_VERSION}", "bios-iam"] | ||
|
||
|
||
[tasks.package-simple-invoke-client-macro] | ||
workspace = false | ||
command = "cargo" | ||
args = ["package", "-p", "simple-invoke-client-macro"] | ||
|
||
[tasks.publish-simple-invoke-client-macro] | ||
workspace = false | ||
command = "bash" | ||
args = [ | ||
"${PUBLISH_SCRIPT}", | ||
"${CARGO_MAKE_PROJECT_VERSION}", | ||
"simple-invoke-client-macro", | ||
] | ||
|
||
[tasks.package-bios-sdk-invoke] | ||
workspace = false | ||
command = "cargo" | ||
args = ["package", "-p", "bios-sdk-invoke"] | ||
|
||
[tasks.publish-bios-sdk-invoke] | ||
dependencies = ["publish-simple-invoke-client-macro"] | ||
workspace = false | ||
command = "bash" | ||
args = ["${PUBLISH_SCRIPT}", "${CARGO_MAKE_PROJECT_VERSION}", "bios-sdk-invoke"] | ||
|
||
|
||
[tasks.publish] | ||
dependencies = ["publish-bios-iam"] | ||
workspace = false | ||
command = "echo" | ||
args = ["Publishing completed!"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#[cfg(feature = "default")] | ||
|
||
pub mod db_helper; | ||
#[cfg(feature = "default")] | ||
|
||
pub mod request_helper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.