-
-
Notifications
You must be signed in to change notification settings - Fork 0
GitHub Actions: Use YAML anchors #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -87,7 +87,7 @@ jobs: | |||||||||||||||||||||||||||||||
| name: build (${{ matrix.runs-on }}) | ||||||||||||||||||||||||||||||||
| needs: phar | ||||||||||||||||||||||||||||||||
| strategy: | ||||||||||||||||||||||||||||||||
| matrix: | ||||||||||||||||||||||||||||||||
| matrix: &matrix | ||||||||||||||||||||||||||||||||
| include: | ||||||||||||||||||||||||||||||||
| - runs-on: ubuntu-24.04-arm | ||||||||||||||||||||||||||||||||
| variant: linux_arm64 | ||||||||||||||||||||||||||||||||
|
|
@@ -157,16 +157,7 @@ jobs: | |||||||||||||||||||||||||||||||
| name: e2e (${{ matrix.runs-on }}) | ||||||||||||||||||||||||||||||||
| needs: build | ||||||||||||||||||||||||||||||||
| strategy: | ||||||||||||||||||||||||||||||||
| matrix: | ||||||||||||||||||||||||||||||||
| include: | ||||||||||||||||||||||||||||||||
| - runs-on: ubuntu-24.04-arm | ||||||||||||||||||||||||||||||||
| variant: linux_arm64 | ||||||||||||||||||||||||||||||||
| - runs-on: ubuntu-24.04 | ||||||||||||||||||||||||||||||||
| variant: linux_amd64 | ||||||||||||||||||||||||||||||||
| - runs-on: macos-15 | ||||||||||||||||||||||||||||||||
| variant: darwin_arm64 | ||||||||||||||||||||||||||||||||
| - runs-on: macos-15-intel | ||||||||||||||||||||||||||||||||
| variant: darwin_amd64 | ||||||||||||||||||||||||||||||||
| matrix: *matrix | ||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
| matrix: *matrix | |
| matrix: | |
| include: | |
| - runs-on: ubuntu-24.04-arm | |
| variant: linux_arm64 | |
| spc-variant: linux-aarch64 | |
| - runs-on: ubuntu-24.04 | |
| variant: linux_amd64 | |
| spc-variant: linux-x86_64 | |
| - runs-on: macos-15 | |
| variant: darwin_arm64 | |
| spc-variant: macos-aarch64 | |
| - runs-on: macos-15-intel | |
| variant: darwin_amd64 | |
| spc-variant: macos-x86_64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GitHub Actions does not support YAML anchors and aliases. While the YAML syntax
&matrixis valid YAML, GitHub Actions workflow parser will not process this anchor, and the subsequent alias reference*matrixon line 160 will fail. This will cause the workflow to fail when it runs.To avoid duplication, consider one of these alternatives: