We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a15ae2 commit eb60679Copy full SHA for eb60679
1 file changed
build-anchor/action.yaml
@@ -19,7 +19,13 @@ runs:
19
FEATURES="--features $FEATURES"
20
fi
21
22
- anchor build -p ${{ inputs.program }} -- $FEATURES
+ IGNORE_KEYS=""
23
+ ANCHOR_MAJOR=$(anchor --version | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | cut -d. -f1)
24
+ if [ "$ANCHOR_MAJOR" -ge 1 ] 2>/dev/null; then
25
+ IGNORE_KEYS="--ignore-keys"
26
+ fi
27
+
28
+ anchor build -p ${{ inputs.program }} $IGNORE_KEYS -- $FEATURES
29
- name: Copy artifacts from container
30
shell: bash
31
run: |
0 commit comments