-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: only run Wasm tests once a PR reaches the merge queue (#1226)
- Loading branch information
Showing
1 changed file
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,30 @@ | ||
# Note: because they take so much time to run, we only run the Primer | ||
# Wasm tests when one of these conditions is true: | ||
# | ||
# 1. The PR has hit the merge queue. | ||
# 2. The PR has the "Run Wasm tests" label. | ||
|
||
agents: | ||
queue: "nix-build" | ||
os: "linux" | ||
|
||
steps: | ||
- label: ":haskell: :linux: Primer Wasm targets" | ||
# Note: only one of these should run during any given build. | ||
# Unfortunately, Buildkite doesn't support if-else conditionals, so | ||
# this gets a bit tricky. | ||
|
||
- label: ":haskell: :linux: Primer Wasm tests" | ||
if: | | ||
build.branch =~ /^gh-readonly-queue\// || | ||
build.pull_request.labels includes "Run Wasm tests" | ||
command: | | ||
nix develop .#wasm --print-build-logs --command make -f Makefile.wasm32 update | ||
nix develop .#wasm --print-build-logs --command make -f Makefile.wasm32 | ||
nix develop .#wasm --print-build-logs --command make -f Makefile.wasm32 test | ||
- label: ":haskell: :linux: Primer Wasm build" | ||
if: | | ||
build.branch !~ /^gh-readonly-queue\// && | ||
!(build.pull_request.labels includes "Run Wasm tests") | ||
command: | | ||
nix develop .#wasm --print-build-logs --command make -f Makefile.wasm32 update | ||
nix develop .#wasm --print-build-logs --command make -f Makefile.wasm32 |