Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
vigoo committed Dec 10, 2024
1 parent 850ac1a commit 043d2fa
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,34 @@ jobs:
report_paths: '**/target/report-*.xml'
detailed_summary: true
include_passed: true

wasm-rpc-stub:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: recursive
- name: Fetch tag
run: git fetch origin --deepen=1
- name: Setup Rust
run: rustup update stable --no-self-update && rustup default stable
- name: Install cargo-component
run: cargo binstall --no-confirm [email protected]
- uses: Swatinem/rust-cache@v2
with:
shared-key: debug
cache-all-crates: true
save-if: true
- uses: davidB/rust-cargo-make@v1
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build wasm-rpc in stub mode
run: cargo component build -p golem-wasm-rpc --no-default-features --features stub

worker-tests-group1:
runs-on: ubuntu-latest-xlarge
name: worker-tests-group1
Expand Down Expand Up @@ -453,6 +481,7 @@ jobs:
needs:
[
build-and-test,
wasm-rpc-stub,
worker-tests,
integration-tests,
cli-tests,
Expand Down
37 changes: 37 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ cargo test --package golem-component-service-base --test tests -- --nocapture --
cargo test --package golem-worker-service-base --test services_tests -- --nocapture --report-time $JUNIT_OPTS
cargo test --package golem-worker-service-base --test api_gateway_end_to_end_tests -- --nocapture --report-time $JUNIT_OPTS
cargo test --package golem-service-base --test integration -- --nocapture --report-time $JUNIT_OPTS
cargo test --package wasm-rpc-stubgen-tests-integration --tests -- --test-threads=1 --report-time $JUNIT_OPTS
'''

[tasks.sharding-tests]
Expand Down Expand Up @@ -373,6 +374,9 @@ args = ["-v", "./target/golem-service.yaml", "./openapi/golem-service.yaml"]
description = "Publishes packages to crates.io"
dependencies = [
"build-release",
"publish-golem-wasm-ast",
"publish-golem-wasm-rpc",
"publish-golem-wasm-rpc-stubgen",
"publish-golem-api-grpc",
"publish-golem-rib",
"publish-golem-common",
Expand Down Expand Up @@ -409,6 +413,39 @@ foreach ($file in $cargoFiles)
}
'''

[tasks.publish-golem-wasm-ast]
description = "Publishes golem-wasm-ast package to crates.io"
command = "cargo"
args = [
"publish",
"-p",
"golem-wasm-ast",
"--all-features",
"--allow-dirty"
]

[tasks.publish-golem-wasm-rpc]
description = "Publishes golem-wasm-rpc package to crates.io"
command = "cargo"
args = [
"publish",
"-p",
"golem-wasm-rpc",
"--all-features",
"--allow-dirty",
]

[tasks.publish-golem-wasm-rpc-stubgen]
description = "Publishes golem-wasm-rpc-stubgen package to crates.io"
command = "cargo"
args = [
"publish",
"-p",
"golem-wasm-rpc-stubgen",
"--all-features",
"--allow-dirty",
]

[tasks.publish-golem-client]
description = "Publishes golem-client package to crates.io"
command = "cargo"
Expand Down

0 comments on commit 043d2fa

Please sign in to comment.