Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions .github/workflows/build-cpp.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
name: Build C++ SDK

on:
push:
branches:
- main
- rc
- hotfix-rc

pull_request:
workflow_dispatch:
workflow_call:

permissions:
contents: read
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/build-dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
name: Build .NET SDK

on:
push:
branches:
- main
- rc
- hotfix-rc
pull_request:
workflow_dispatch:
workflow_call:

permissions:
contents: read
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/build-java.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
name: Build Java SDK

on:
push:
branches:
- main
pull_request:
workflow_dispatch:
workflow_call:

permissions:
contents: read
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/build-napi.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
name: Build @bitwarden/sdk-napi

on:
pull_request:
push:
branches:
- "main"
- "rc"
- "hotfix-rc"
workflow_dispatch:
workflow_call:

defaults:
run:
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/build-python-wheels.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
name: Build Python Wheels

on:
pull_request:
push:
branches:
- "main"
- "rc"
- "hotfix-rc"
workflow_dispatch:
inputs:
dev_version:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/build-ruby.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
name: Build Ruby

on:
pull_request:
push:
branches:
- "main"
workflow_dispatch:
workflow_call:

permissions:
contents: read

concurrency:
group: build-ruby-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Build Ruby
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/build-rust-cross-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ name: Build Rust Cross Platform
on:
workflow_call:
workflow_dispatch:
push:
branches:
- main
- rc
- hotfix-rc
pull_request:

permissions:
contents: read
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/build-wasm.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
name: Build @bitwarden/sdk-wasm

on:
pull_request:
push:
branches:
- "main"
- "rc"
- "hotfix-rc"
workflow_dispatch:
workflow_call:

defaults:
run:
Expand Down
95 changes: 95 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
name: Build All SDKs

on:
pull_request:
push:
branches:
- "main"
- "rc"
- "hotfix-rc"
workflow_dispatch:

permissions:
contents: read

concurrency:
group: build-all-${{ github.ref }}
cancel-in-progress: true

jobs:
# Tier 0: Base workflows with no dependencies
generate-schemas:
name: Generate Schemas
uses: ./.github/workflows/generate_schemas.yml
permissions:
contents: read

build-rust-cross-platform:
name: Build Rust Cross-Platform
uses: ./.github/workflows/build-rust-cross-platform.yml
permissions:
contents: read

build-wasm:
name: Build WebAssembly
uses: ./.github/workflows/build-wasm.yml
permissions:
contents: read
packages: write

# Tier 1: Depends on schemas only
build-napi:
name: Build NAPI (Node.js)
needs:
- generate-schemas
uses: ./.github/workflows/build-napi.yml
permissions:
contents: read

# Tier 2: Depends on both schemas and rust cross-platform
build-cpp:
name: Build C++
needs:
- generate-schemas
- build-rust-cross-platform
uses: ./.github/workflows/build-cpp.yml
permissions:
contents: read

build-dotnet:
name: Build .NET
needs:
- generate-schemas
- build-rust-cross-platform
uses: ./.github/workflows/build-dotnet.yml
permissions:
contents: read

build-java:
name: Build Java
needs:
- generate-schemas
- build-rust-cross-platform
uses: ./.github/workflows/build-java.yml
permissions:
contents: read

build-python-wheels:
name: Build Python
needs:
- generate-schemas
- build-rust-cross-platform
uses: ./.github/workflows/build-python-wheels.yml
permissions:
contents: read
with:
dev_version: false

build-ruby:
name: Build Ruby
needs:
- generate-schemas
- build-rust-cross-platform
uses: ./.github/workflows/build-ruby.yml
permissions:
contents: read
5 changes: 0 additions & 5 deletions .github/workflows/generate_schemas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ name: Generate schemas
on:
workflow_call:
workflow_dispatch:
push:
branches:
- main
- rc
- hotfix-rc

env:
CARGO_TERM_COLOR: always
Expand Down
Loading