Skip to content

Commit 0a39348

Browse files
committed
Include build binaries
1 parent 027f800 commit 0a39348

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,33 @@ jobs:
8989
name: artifacts-plan-dist-manifest
9090
path: plan-dist-manifest.json
9191

92+
custom-build-binaries:
93+
needs:
94+
- plan
95+
if: ${{ needs.plan.outputs.publishing == 'true' || fromJson(needs.plan.outputs.val).ci.github.pr_run_mode == 'upload' || inputs.tag == 'dry-run' }}
96+
uses: ./.github/workflows/build-binaries.yml
97+
with:
98+
plan: ${{ needs.plan.outputs.val }}
99+
secrets: inherit
100+
101+
custom-build-docker:
102+
needs:
103+
- plan
104+
if: ${{ needs.plan.outputs.publishing == 'true' || fromJson(needs.plan.outputs.val).ci.github.pr_run_mode == 'upload' || inputs.tag == 'dry-run' }}
105+
uses: ./.github/workflows/build-docker.yml
106+
with:
107+
plan: ${{ needs.plan.outputs.val }}
108+
secrets: inherit
109+
permissions:
110+
"contents": "read"
111+
"packages": "write"
112+
92113
# Build and package all the platform-agnostic(ish) things
93114
build-global-artifacts:
94115
needs:
95116
- plan
117+
- custom-build-binaries
118+
- custom-build-docker
96119
runs-on: "ubuntu-20.04"
97120
env:
98121
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -137,9 +160,11 @@ jobs:
137160
host:
138161
needs:
139162
- plan
163+
- custom-build-binaries
164+
- custom-build-docker
140165
- build-global-artifacts
141166
# Only run if we're "publishing", and only if local and global didn't fail (skipped is fine)
142-
if: ${{ always() && needs.plan.outputs.publishing == 'true' && (needs.build-global-artifacts.result == 'skipped' || needs.build-global-artifacts.result == 'success') }}
167+
if: ${{ always() && needs.plan.outputs.publishing == 'true' && (needs.build-global-artifacts.result == 'skipped' || needs.build-global-artifacts.result == 'success') && (needs.custom-build-binaries.result == 'skipped' || needs.custom-build-binaries.result == 'success') && (needs.custom-build-docker.result == 'skipped' || needs.custom-build-docker.result == 'success') }}
143168
env:
144169
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
145170
runs-on: "ubuntu-20.04"

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ github-release = "announce"
301301
# Whether CI should include auto-generated code to build local artifacts
302302
build-local-artifacts = false
303303
# Local artifacts jobs to run in CI
304-
# local-artifacts-jobs = ["./build-binaries", "./build-docker"]
304+
local-artifacts-jobs = ["./build-binaries", "./build-docker"]
305305
# Publish jobs to run in CI
306306
publish-jobs = ["./publish-wasm"]
307307
# Post-announce jobs to run in CI

0 commit comments

Comments
 (0)