Skip to content

Commit

Permalink
ci: grinding away on the gh workflow steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Bryce committed Dec 5, 2023
1 parent 6af9c33 commit ebed5e1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,10 @@ jobs:
uses: arduino/setup-protoc@v2
with:
version: "24.3"
- name: bootstrap
run: |
task apis:bootsrap
- name: generate
- name: all ci steps
run: |
# Note: it is by design that we don't use the builder
task apis:bootstrap
task apis:generate
13 changes: 8 additions & 5 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,20 @@ tasks:
### -------------------------
# Primary workflow tasks
### -------------------------

bootstrap:
desc: idempotent, run after first clone and after any significant re-base or update
all:
desc: "do everything necessary after clone (or rebase)"
cmds:
- echo {{.PROTO_INC_ROOT}}
# - task apis:fetch-proto-def
- task: builder-start
- defer: {task: builder-cleanup}
# These steps should exactly mirror the steps in .github/workflows/ci.yml
- docker exec -t {{.BUILD_CONTAINER}} task apis:bootstrap
- docker exec -t {{.BUILD_CONTAINER}} task apis:generate

# 2. generate
generate:
desc: generates all the artifacts we need pre-build
cmds:
- task: builder-start
- defer: {task: builder-cleanup}
# DO NOT add bootstrap here, use all instead
- docker exec -t {{.BUILD_CONTAINER}} task apis:generate

0 comments on commit ebed5e1

Please sign in to comment.