Skip to content

Commit

Permalink
apacheGH-41088: [CI][Crossbow] Fix GitHub Actions workflow syntax err…
Browse files Browse the repository at this point in the history
…or (apache#41091)

### Rationale for this change

We can't use multiple top-level `env:` in workflow. apacheGH-40949 introduced a top-level `env:` by `macros.github_header()`. It broke workflows that already have top-level `env:`.

### What changes are included in this PR?

Omit top-level `env:` key and reuse the top-level `env:` key generated by `macros.github_header()` in workflows.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* GitHub Issue: apache#41088

Authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
  • Loading branch information
kou authored and vibhatha committed Apr 15, 2024
1 parent adb2163 commit c25fd23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions dev/tasks/python-wheels/github.osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
{% import 'macros.jinja' as macros with context %}

{{ macros.github_header() }}

env:
# env: is generated by macros.github_header()
ARROW_JEMALLOC: "{{ arrow_jemalloc }}"
CC: "clang"
CMAKE_BUILD_TYPE: release
Expand Down
3 changes: 1 addition & 2 deletions dev/tasks/verify-rc/github.macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
{{ macros.github_header() }}

{% set use_conda = use_conda|default(False) %}

env:
# env: is generated by macros.github_header()
# Current oldest supported version according to https://endoflife.date/macos
MACOSX_DEPLOYMENT_TARGET: "10.15"

Expand Down

0 comments on commit c25fd23

Please sign in to comment.