Skip to content

Commit 008c7c9

Browse files
committed
chore: improve package infos
1 parent 2f00e53 commit 008c7c9

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

.github/workflows/precompile.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ jobs:
4545
if: startsWith(github.ref, 'refs/tags/')
4646
with:
4747
files: |
48-
cache/adbc*.tar.gz
49-
cache/adbc*.sha256
48+
cache/exrdkafka*.tar.gz
49+
cache/exrdkafka*.sha256
5050
5151
macos:
5252
runs-on: macos-12

mix.exs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ defmodule Exrdkafka.MixProject do
22
use Mix.Project
33

44
@version "0.1.0"
5+
@github_url "https://github.com/jsvitolo/exrdkafka"
56

67
def project do
78
[
@@ -20,7 +21,7 @@ defmodule Exrdkafka.MixProject do
2021

2122
# Configuração para pré-compilação
2223
make_precompiler: {:nif, CCPrecompiler},
23-
make_precompiler_url: "https://github.com/jsvitolo/exrdkafka/releases/download/v#{@version}/@{artefact_filename}",
24+
make_precompiler_url: "#{@github_url}/releases/download/v#{@version}/@{artefact_filename}",
2425
make_precompiler_filename: "exrdkafka_nif",
2526
make_precompiler_priv_paths: ["exrdkafka_nif.*"],
2627

@@ -68,4 +69,22 @@ defmodule Exrdkafka.MixProject do
6869
{:cc_precompiler, "~> 0.1.0", runtime: false, github: "cocoa-xu/cc_precompiler"}
6970
]
7071
end
72+
73+
def package do
74+
[
75+
files: [
76+
"lib",
77+
"c_src",
78+
"Makefile",
79+
"mix.exs",
80+
"README.md",
81+
"LICENSE",
82+
"checksum-*.exs",
83+
"VERSION"
84+
],
85+
description: "Elixir Kafka client NIF for librdkafka",
86+
licenses: ["MIT"],
87+
links: %{"GitHub" => @github_url}
88+
]
89+
end
7190
end

0 commit comments

Comments
 (0)