Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,20 @@ jobs:
echo "package=$pkg" >> "$GITHUB_OUTPUT"
fi

# Publishing compiles the deps, and the optional :image dep brings vix.
# vix's default mode downloads a precompiled NIF and libvips from GitHub
# release assets with :httpc, and that download failed with
# {:header_too_long, {:max, 10240}} on the GitHub redirect (0.7.31's
# release run). Building vix against the runner's libvips needs no
# download.
- name: Install libvips for vix
if: env.HEX_API_KEY != '' && steps.hex_check.outputs.exists == 'false'
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends libvips-dev

- name: mix hex.publish
if: env.HEX_API_KEY != '' && steps.hex_check.outputs.exists == 'false'
env:
VIX_COMPILATION_MODE: PLATFORM_PROVIDED_LIBVIPS
# `--yes` skips the interactive confirm. `mix hex.publish` (no
# subcommand) ships both the package archive AND docs in one call.
run: |
Expand Down
Loading