Skip to content

Commit 5f16c0e

Browse files
committed
Add elixir to path on Windows
1 parent bf8aed5 commit 5f16c0e

File tree

5 files changed

+5
-1
lines changed

5 files changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ jobs:
9898
run: |
9999
Remove-Item -Recurse -Force '.git'
100100
make compile
101+
Add-Content -Path $env:GITHUB_PATH -Value "$env:PWD\bin"
101102
- name: Build info
102103
run: bin/elixir --version
103104
- name: Check format

lib/mix/lib/mix/tasks/deps.partition.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule Mix.Tasks.Deps.Partition do
2121

2222
defp server(socket, deps, count, force?) do
2323
elixir =
24-
System.find_executable("elixir") || System.find_executable("elixir.bat") ||
24+
System.find_executable("elixir") ||
2525
raise "cannot find elixir executable for partition compilation"
2626

2727
{:ok, {ip, port}} = :inet.sockname(socket)

lib/mix/test/mix/tasks/deps_test.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ defmodule Mix.Tasks.DepsTest do
219219
end)
220220
end
221221

222+
@tag :elixir_executable
222223
test "compiles deps using os partitions" do
223224
System.put_env("MIX_OS_DEPS_COMPILE_PARTITION_COUNT", "2")
224225

lib/mix/test/mix/umbrella_test.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ defmodule Mix.UmbrellaTest do
282282
end)
283283
end
284284

285+
@tag :elixir_executable
285286
test "compile for umbrella as dependency with os partitions" do
286287
System.put_env("MIX_OS_DEPS_COMPILE_PARTITION_COUNT", "2")
287288

lib/mix/test/test_helper.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Application.put_env(:logger, :default_handler, false)
2525

2626
os_exclude = if match?({:win32, _}, :os.type()), do: [unix: true], else: [windows: true]
2727
epmd_exclude = if match?({:win32, _}, :os.type()), do: [epmd: true], else: []
28+
exec_exclude = if System.find_executable("elixir"), do: [], else: [elixir_executable: true]
2829

2930
git_exclude =
3031
Mix.SCM.Git.unsupported_options()

0 commit comments

Comments
 (0)