Skip to content
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

fix: remove version from targets #148

Merged
merged 1 commit into from
Aug 9, 2023
Merged
Show file tree
Hide file tree
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
18 changes: 16 additions & 2 deletions bin/start
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,24 @@

# used for local development


set -e

cd "$(dirname "$0")"/.. || exit 1

MIX_ENV=dev mix release --overwrite
function main() {
local machine
local arch
local target
machine="$(uname)"
arch="$(uname -m)"
target="${machine,,}_${arch,,}"

local

BURRITO_TARGET="$target" MIX_ENV=dev mix release --overwrite

exec "./burrito_out/next_ls_$target" "$@"
}

./burrito_out/next_ls_macos "$@"
main "$@"
14 changes: 7 additions & 7 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ defmodule NextLS.MixProject do
steps: [:assemble, &Burrito.wrap/1],
burrito: [
targets: [
"#{@version}-darwin_arm64": [os: :darwin, cpu: :aarch64],
"#{@version}-darwin_amd64": [os: :darwin, cpu: :x86_64],
"#{@version}-linux_arm64": [os: :linux, cpu: :aarch64, libc: :gnu],
"#{@version}-linux_amd64": [os: :linux, cpu: :x86_64, libc: :gnu],
"#{@version}-linux_arm64_musl": [os: :linux, cpu: :aarch64, libc: :musl],
"#{@version}-linux_amd64_musl": [os: :linux, cpu: :x86_64, libc: :musl],
"#{@version}-windows_amd64": [os: :windows, cpu: :x86_64]
darwin_arm64: [os: :darwin, cpu: :aarch64],
darwin_amd64: [os: :darwin, cpu: :x86_64],
linux_arm64: [os: :linux, cpu: :aarch64, libc: :gnu],
linux_amd64: [os: :linux, cpu: :x86_64, libc: :gnu],
linux_arm64_musl: [os: :linux, cpu: :aarch64, libc: :musl],
linux_amd64_musl: [os: :linux, cpu: :x86_64, libc: :musl],
windows_amd64: [os: :windows, cpu: :x86_64]
]
]
]
Expand Down
Loading