Skip to content

Commit

Permalink
Fix nvim-macos archive name
Browse files Browse the repository at this point in the history
  • Loading branch information
sakhnik committed Aug 11, 2024
1 parent 80d6073 commit ab71087
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [macos-latest]
python-version: ["3.11"]

runs-on: ${{ matrix.os }}
Expand Down
3 changes: 2 additions & 1 deletion test/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
from prerequisites import Prerequisites
Prerequisites()

test_cmd = ["nvim", "-l", "run-tests.lua", ".", "--no-keep-going"]
#test_cmd = ["nvim", "-l", "run-tests.lua", ".", "--no-keep-going"]
test_cmd = ["python", "nvim.py", "+luafile main.lua"]
print(f"Run `{' '.join(test_cmd)}`")
res = subprocess.run(test_cmd)
if res.returncode != 0:
Expand Down
9 changes: 5 additions & 4 deletions utils/testenv_darwin.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ def __init__(self, url: str):

subprocess.run('pip install --user six', shell=True, check=True)

urllib.request.urlretrieve(f"{url}/nvim-macos.tar.gz",
"nvim-macos.tar.gz")
urllib.request.urlretrieve(f"{url}/nvim-macos-x86_64.tar.gz",
"nvim-macos-x86_64.tar.gz")
subprocess.run(
r'''
tar -xf nvim-macos.tar.gz
tar -xf nvim-macos-x86_64.tar.gz
cat >"$HOME/bin/nvim" <<EOF
#!/bin/bash
$(pwd)/nvim-macos/bin/nvim "\$@"
$(pwd)/nvim-macos-x86_64/bin/nvim "\$@"
EOF
chmod +x "$HOME/bin/nvim"
''',
Expand All @@ -47,6 +47,7 @@ def __init__(self, url: str):
brew install luarocks luajit
luarocks --lua-version=5.1 init
luarocks --lua-version=5.1 install busted
find lua_modules
''',
shell=True, check=True
)

0 comments on commit ab71087

Please sign in to comment.