Multi platform worklow using matrix and platform specific step. #5367
Replies: 2 comments 2 replies
-
|
I guess that's a bug and this is not supported in it's current state. The Solving this will probably be pretty hard and requires refactorings on the whole compiling and filtering process. To solve this for you, the only way I see is to check the |
Beta Was this translation helpful? Give feedback.
-
variables:
- common_settings: &common_settings
binary_cache: https://cache.nix.vdx.hu/private
binary_cache_public_key: private:O0/Z0BQZpKKHQQES65u7xNfZF7eCZoz9RKJi191TGaM=
binary_cache_token:
from_secret: attic_token
- runner_image: &runner_image
image: harbor.vdx.hu/voidcontext/woodpecker-plugin-nix-attic:0.3.0-alpha15
when:
- event: push
branch: main
- event: pull_request
matrix:
include:
- platform: linux/amd64
PLATFORM_FOR_FILTER: amd
- platform: linux/arm64
PLATFORM_FOR_FILTER: arm
labels:
platform: ${platform}
steps:
- name: cache-warmup
<<: *runner_image
settings:
<<: *common_settings
script: make cache-warmup
- name: flake-check
<<: *runner_image
when:
evaluate: 'PLATFORM_FOR_FILTER == "amd"'
settings:
<<: *common_settings
script: nix flake check
- name: formating-check
<<: *runner_image
when:
evaluate: 'PLATFORM_FOR_FILTER == "amd"'
settings:
<<: *common_settings
script: nix develop -c alejandra . --check |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have a matrix workflow that runs on amd64 and arm64 platforms, there 2 steps that I only want to run on amd64, but it seems these steps don't run on any platforms, what am I missing? Both the server and the agents are on
3.8.0and the workflow looks like this:Beta Was this translation helpful? Give feedback.
All reactions