Add the go dependency to CI and Brewfile
This commit is contained in:
parent
63da2e1ec6
commit
cea9ff30dc
3 changed files with 21 additions and 0 deletions
1
.github/workflows/ci.py
vendored
1
.github/workflows/ci.py
vendored
|
|
@ -32,6 +32,7 @@ def install_deps():
|
||||||
if is_macos:
|
if is_macos:
|
||||||
items = (x.split()[1].strip('"') for x in open('Brewfile').readlines() if x.strip().startswith('brew '))
|
items = (x.split()[1].strip('"') for x in open('Brewfile').readlines() if x.strip().startswith('brew '))
|
||||||
openssl = 'openssl'
|
openssl = 'openssl'
|
||||||
|
items.remove('go') # already installed by ci.yml
|
||||||
import ssl
|
import ssl
|
||||||
if ssl.OPENSSL_VERSION_INFO[0] == 1:
|
if ssl.OPENSSL_VERSION_INFO[0] == 1:
|
||||||
openssl += '@1.1'
|
openssl += '@1.1'
|
||||||
|
|
|
||||||
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
|
|
@ -53,6 +53,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.pyver }}
|
python-version: ${{ matrix.pyver }}
|
||||||
|
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: '>=1.19.0'
|
||||||
|
|
||||||
- name: Build kitty
|
- name: Build kitty
|
||||||
run: python .github/workflows/ci.py build
|
run: python .github/workflows/ci.py build
|
||||||
|
|
||||||
|
|
@ -78,6 +83,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: "3.10"
|
python-version: "3.10"
|
||||||
|
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: '>=1.19.0'
|
||||||
|
|
||||||
- name: Install build-only deps
|
- name: Install build-only deps
|
||||||
run: pip install -r docs/requirements.txt flake8 mypy types-requests types-docutils
|
run: pip install -r docs/requirements.txt flake8 mypy types-requests types-docutils
|
||||||
|
|
||||||
|
|
@ -113,6 +123,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 10
|
fetch-depth: 10
|
||||||
|
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: '>=1.19.0'
|
||||||
|
|
||||||
- name: Build kitty
|
- name: Build kitty
|
||||||
run: which python3 && python3 .github/workflows/ci.py build
|
run: which python3 && python3 .github/workflows/ci.py build
|
||||||
|
|
||||||
|
|
@ -132,6 +147,10 @@ jobs:
|
||||||
uses: actions/setup-python@v3
|
uses: actions/setup-python@v3
|
||||||
with:
|
with:
|
||||||
python-version: "3.10"
|
python-version: "3.10"
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: '>=1.19.0'
|
||||||
|
|
||||||
- name: Build kitty
|
- name: Build kitty
|
||||||
run: python3 .github/workflows/ci.py build
|
run: python3 .github/workflows/ci.py build
|
||||||
|
|
|
||||||
1
Brewfile
1
Brewfile
|
|
@ -5,3 +5,4 @@ brew "python"
|
||||||
brew "imagemagick"
|
brew "imagemagick"
|
||||||
brew "harfbuzz"
|
brew "harfbuzz"
|
||||||
brew "sphinx-doc"
|
brew "sphinx-doc"
|
||||||
|
brew "go"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue