Skip to content

Commit

Permalink
Protobuf compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasLYang committed Jun 18, 2024
1 parent b4ceb48 commit 3620e2b
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 65 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,17 @@ jobs:
name: artifacts-plan-dist-manifest
path: plan-dist-manifest.json

custom-setup-release-environment:
uses: ./.github/workflows/setup-release-environment.yml
secrets: inherit

# Build and packages all the platform-specific things
build-local-artifacts:
name: build-local-artifacts (${{ join(matrix.targets, ', ') }})
# Let the initial task tell us to not run (currently very blunt)
needs:
- plan
- custom-setup-release-environment
if: ${{ fromJson(needs.plan.outputs.val).ci.github.artifacts_matrix.include != null && (needs.plan.outputs.publishing == 'true' || fromJson(needs.plan.outputs.val).ci.github.pr_run_mode == 'upload') || inputs.tag == 'dry-run' }}
strategy:
fail-fast: false
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/setup-release-environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Setup Release Environment

on:
# Defining workflow_call means that this workflow can be called from
# your main workflow job
workflow_call:
# cargo-dist exposes the plan from the plan step, as a JSON string,
# to your job if it needs it
inputs:
plan:
required: true
type: string

jobs:
greeter:
runs-on: ubuntu-latest
# This is optional; it exposes the plan to your job as an environment variable
env:
PLAN: ${{ inputs.plan }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ./.github/actions/setup-turborepo-environment
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ unix-archive = ".tar.gz"
pr-run-mode = "plan"
# Whether CI should trigger releases with dispatches instead of tag pushes
dispatch-releases = true
# Plan jobs to run in CI
plan-jobs = ["./setup-release-environment"]

[workspace.metadata.dist.dependencies.homebrew]
protobuf = "*"
Expand All @@ -117,7 +119,8 @@ llvm = "*"
capnproto = "*"
gcc-aarch64-linux-gnu = { version = "*", targets = ["aarch64-unknown-linux-musl"] }
binutils-aarch64-linux-gnu = { version = "*", targets = ["aarch64-unknown-linux-musl"] }
protobuf-compiler = "2"
protobuf-compiler = "*"


[workspace.lints.clippy]
too_many_arguments = "allow"
Expand Down
6 changes: 0 additions & 6 deletions packages/eslint-config-turbo/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"name": "eslint-config-turbo",
<<<<<<< HEAD
"version": "2.0.4",
||||||| parent of 0d8de51003 (Trying out new release process via cargo dist)
"version": "2.0.3",
=======
"version": "2.0.4-canary.0",
>>>>>>> 0d8de51003 (Trying out new release process via cargo dist)
"description": "ESLint config for Turborepo",
"repository": {
"type": "git",
Expand Down
6 changes: 0 additions & 6 deletions packages/eslint-plugin-turbo/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"name": "eslint-plugin-turbo",
<<<<<<< HEAD
"version": "2.0.4",
||||||| parent of 0d8de51003 (Trying out new release process via cargo dist)
"version": "2.0.3",
=======
"version": "2.0.4-canary.0",
>>>>>>> 0d8de51003 (Trying out new release process via cargo dist)
"description": "ESLint plugin for Turborepo",
"keywords": [
"turbo",
Expand Down
6 changes: 0 additions & 6 deletions packages/turbo-codemod/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"name": "@turbo/codemod",
<<<<<<< HEAD
"version": "2.0.4",
||||||| parent of 0d8de51003 (Trying out new release process via cargo dist)
"version": "2.0.3",
=======
"version": "2.0.4-canary.0",
>>>>>>> 0d8de51003 (Trying out new release process via cargo dist)
"description": "Provides Codemod transformations to help upgrade your Turborepo codebase when a feature is deprecated.",
"homepage": "https://turbo.build/repo",
"license": "MIT",
Expand Down
6 changes: 0 additions & 6 deletions packages/turbo-gen/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"name": "@turbo/gen",
<<<<<<< HEAD
"version": "2.0.4",
||||||| parent of 0d8de51003 (Trying out new release process via cargo dist)
"version": "2.0.3",
=======
"version": "2.0.4-canary.0",
>>>>>>> 0d8de51003 (Trying out new release process via cargo dist)
"description": "Extend a Turborepo",
"homepage": "https://turbo.build/repo",
"license": "MIT",
Expand Down
6 changes: 0 additions & 6 deletions packages/turbo-ignore/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"name": "turbo-ignore",
<<<<<<< HEAD
"version": "2.0.4",
||||||| parent of 0d8de51003 (Trying out new release process via cargo dist)
"version": "2.0.3",
=======
"version": "2.0.4-canary.0",
>>>>>>> 0d8de51003 (Trying out new release process via cargo dist)
"description": "",
"homepage": "https://turbo.build/repo",
"keywords": [],
Expand Down
6 changes: 0 additions & 6 deletions packages/turbo-types/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"name": "@turbo/types",
<<<<<<< HEAD
"version": "2.0.4",
||||||| parent of 0d8de51003 (Trying out new release process via cargo dist)
"version": "2.0.3",
=======
"version": "2.0.4-canary.0",
>>>>>>> 0d8de51003 (Trying out new release process via cargo dist)
"description": "Turborepo types",
"homepage": "https://turbo.build/repo",
"license": "MIT",
Expand Down
6 changes: 0 additions & 6 deletions packages/turbo-workspaces/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"name": "@turbo/workspaces",
<<<<<<< HEAD
"version": "2.0.4",
||||||| parent of 0d8de51003 (Trying out new release process via cargo dist)
"version": "2.0.3",
=======
"version": "2.0.4-canary.0",
>>>>>>> 0d8de51003 (Trying out new release process via cargo dist)
"description": "Tools for working with package managers",
"homepage": "https://turbo.build/repo",
"license": "MIT",
Expand Down
22 changes: 0 additions & 22 deletions packages/turbo/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"name": "turbo",
<<<<<<< HEAD
"version": "2.0.4",
||||||| parent of 0d8de51003 (Trying out new release process via cargo dist)
"version": "2.0.3",
=======
"version": "2.0.4-canary.0",
>>>>>>> 0d8de51003 (Trying out new release process via cargo dist)
"description": "Turborepo is a high-performance build system for JavaScript and TypeScript codebases.",
"repository": "https://github.com/vercel/turbo",
"bugs": "https://github.com/vercel/turbo/issues",
Expand All @@ -23,27 +17,11 @@
"bin"
],
"optionalDependencies": {
<<<<<<< HEAD
"turbo-darwin-64": "2.0.4",
"turbo-darwin-arm64": "2.0.4",
"turbo-linux-64": "2.0.4",
"turbo-linux-arm64": "2.0.4",
"turbo-windows-64": "2.0.4",
"turbo-windows-arm64": "2.0.4"
||||||| parent of 0d8de51003 (Trying out new release process via cargo dist)
"turbo-darwin-64": "2.0.3",
"turbo-darwin-arm64": "2.0.3",
"turbo-linux-64": "2.0.3",
"turbo-linux-arm64": "2.0.3",
"turbo-windows-64": "2.0.3",
"turbo-windows-arm64": "2.0.3"
=======
"turbo-darwin-64": "2.0.4-canary.0",
"turbo-darwin-arm64": "2.0.4-canary.0",
"turbo-linux-64": "2.0.4-canary.0",
"turbo-linux-arm64": "2.0.4-canary.0",
"turbo-windows-64": "2.0.4-canary.0",
"turbo-windows-arm64": "2.0.4-canary.0"
>>>>>>> 0d8de51003 (Trying out new release process via cargo dist)
}
}

0 comments on commit 3620e2b

Please sign in to comment.