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 192a86f
Show file tree
Hide file tree
Showing 3 changed files with 7 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
8 changes: 4 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 Down

0 comments on commit 192a86f

Please sign in to comment.