mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 14:34:52 +02:00
Rationalize build/test/package cycle
This commit is contained in:
8
.github/workflows/ci.py
vendored
8
.github/workflows/ci.py
vendored
@@ -163,7 +163,8 @@ def install_deps() -> None:
|
|||||||
run('sudo apt-get install -y --fix-missing libgl1-mesa-dev libxi-dev libxrandr-dev libxinerama-dev ca-certificates'
|
run('sudo apt-get install -y --fix-missing libgl1-mesa-dev libxi-dev libxrandr-dev libxinerama-dev ca-certificates'
|
||||||
' libxcursor-dev libxcb-xkb-dev libdbus-1-dev libxkbcommon-dev libharfbuzz-dev libx11-xcb-dev zsh'
|
' libxcursor-dev libxcb-xkb-dev libdbus-1-dev libxkbcommon-dev libharfbuzz-dev libx11-xcb-dev zsh'
|
||||||
' libpng-dev liblcms2-dev libfontconfig-dev libxkbcommon-x11-dev libcanberra-dev libxxhash-dev uuid-dev'
|
' libpng-dev liblcms2-dev libfontconfig-dev libxkbcommon-x11-dev libcanberra-dev libxxhash-dev uuid-dev'
|
||||||
' libsimde-dev libsystemd-dev libcairo2-dev zsh bash dash systemd-coredump gdb')
|
' libsimde-dev libsystemd-dev libcairo2-dev zsh bash dash systemd-coredump gdb'
|
||||||
|
' libwayland-dev wayland-protocols')
|
||||||
# for some reason these directories are world writable which causes zsh
|
# for some reason these directories are world writable which causes zsh
|
||||||
# compinit to break
|
# compinit to break
|
||||||
run('sudo chmod -R og-w /usr/share/zsh')
|
run('sudo chmod -R og-w /usr/share/zsh')
|
||||||
@@ -198,6 +199,7 @@ def test_kitty() -> None:
|
|||||||
def package_kitty() -> None:
|
def package_kitty() -> None:
|
||||||
python = 'python3' if is_macos else 'python'
|
python = 'python3' if is_macos else 'python'
|
||||||
run(f'{python} setup.py linux-package --update-check-interval=0 --verbose')
|
run(f'{python} setup.py linux-package --update-check-interval=0 --verbose')
|
||||||
|
run('make FAIL_WARN=1 docs')
|
||||||
if is_macos:
|
if is_macos:
|
||||||
run('python3 setup.py kitty.app --update-check-interval=0 --verbose')
|
run('python3 setup.py kitty.app --update-check-interval=0 --verbose')
|
||||||
run('kitty.app/Contents/MacOS/kitty +runpy "from kitty.constants import *; print(kitty_exe())"')
|
run('kitty.app/Contents/MacOS/kitty +runpy "from kitty.constants import *; print(kitty_exe())"')
|
||||||
@@ -329,9 +331,9 @@ def main() -> None:
|
|||||||
if action == 'build':
|
if action == 'build':
|
||||||
build_kitty()
|
build_kitty()
|
||||||
elif action == 'package':
|
elif action == 'package':
|
||||||
package_kitty()
|
build_kitty()
|
||||||
elif action == 'test':
|
|
||||||
test_kitty()
|
test_kitty()
|
||||||
|
package_kitty()
|
||||||
elif action == 'test':
|
elif action == 'test':
|
||||||
test_kitty()
|
test_kitty()
|
||||||
elif action == 'govulncheck':
|
elif action == 'govulncheck':
|
||||||
|
|||||||
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@@ -124,9 +124,6 @@ jobs:
|
|||||||
- name: Run go vet
|
- name: Run go vet
|
||||||
run: go version && go vet -tags testing ./...
|
run: go version && go vet -tags testing ./...
|
||||||
|
|
||||||
- name: Build docs
|
|
||||||
run: make FAIL_WARN=1 docs
|
|
||||||
|
|
||||||
- name: Build static kittens
|
- name: Build static kittens
|
||||||
run: python setup.py build-static-binaries
|
run: python setup.py build-static-binaries
|
||||||
|
|
||||||
@@ -177,18 +174,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
|
|
||||||
- name: Build kitty
|
|
||||||
run: python3 .github/workflows/ci.py build
|
|
||||||
|
|
||||||
- name: Test kitty
|
|
||||||
run: python3 .github/workflows/ci.py test
|
|
||||||
|
|
||||||
- name: Install deps for docs
|
- name: Install deps for docs
|
||||||
run: python3 -m pip install -r docs/requirements.txt
|
run: python3 -m pip install -r docs/requirements.txt
|
||||||
|
|
||||||
- name: Builds docs
|
|
||||||
run: make FAIL_WARN=1 docs
|
|
||||||
|
|
||||||
- name: Build kitty package
|
- name: Build kitty package
|
||||||
run: python3 .github/workflows/ci.py package
|
run: python3 .github/workflows/ci.py package
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user