Install Go 1.18 on CI

This commit is contained in:
Kovid Goyal 2022-09-21 10:46:58 +05:30
parent 2cacd7a64a
commit d0e133885c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -5,6 +5,7 @@ env:
ASAN_OPTIONS: leak_check_at_exit=0 ASAN_OPTIONS: leak_check_at_exit=0
LC_ALL: en_US.UTF-8 LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8 LANG: en_US.UTF-8
GO_INSTALL_VERSION: ">=1.18.0"
permissions: permissions:
contents: read # to fetch code (actions/checkout) contents: read # to fetch code (actions/checkout)
@ -48,11 +49,17 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
fetch-depth: 10 fetch-depth: 10
- name: Set up Python ${{ matrix.pyver }} - name: Set up Python ${{ matrix.pyver }}
uses: actions/setup-python@v3 uses: actions/setup-python@v3
with: with:
python-version: ${{ matrix.pyver }} python-version: ${{ matrix.pyver }}
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_INSTALL_VERSION }}
- name: Build kitty - name: Build kitty
run: python .github/workflows/ci.py build run: python .github/workflows/ci.py build
@ -73,10 +80,22 @@ jobs:
- name: Test for trailing whitespace - name: Test for trailing whitespace
run: if grep -Inr '\s$' kitty kitty_tests kittens docs *.py *.asciidoc *.rst *.go .gitattributes .gitignore; then echo Trailing whitespace found, aborting.; exit 1; fi run: if grep -Inr '\s$' kitty kitty_tests kittens docs *.py *.asciidoc *.rst *.go .gitattributes .gitignore; then echo Trailing whitespace found, aborting.; exit 1; fi
<<<<<<< HEAD
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v3 uses: actions/setup-python@v3
with: with:
python-version: "3.10" python-version: "3.10"
=======
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.9
>>>>>>> 359bf535d (Install Go 1.18 on CI)
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_INSTALL_VERSION }}
- name: Install build-only deps - name: Install build-only deps
run: python -m pip install -r docs/requirements.txt flake8 mypy types-requests types-docutils run: python -m pip install -r docs/requirements.txt flake8 mypy types-requests types-docutils
@ -116,6 +135,11 @@ jobs:
with: with:
fetch-depth: 10 fetch-depth: 10
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_INSTALL_VERSION }}
- name: Build kitty - name: Build kitty
run: which python3 && python3 .github/workflows/ci.py build run: which python3 && python3 .github/workflows/ci.py build
@ -136,6 +160,11 @@ jobs:
with: with:
python-version: "3.10" python-version: "3.10"
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_INSTALL_VERSION }}
- name: Build kitty - name: Build kitty
run: python3 .github/workflows/ci.py build run: python3 .github/workflows/ci.py build