Skip to content

Commit

Permalink
chore: bump ci runner and actions (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
Conni2461 authored May 25, 2023
1 parent 2f42ffe commit 9bc8237
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 24 deletions.
40 changes: 23 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,19 @@ jobs:
name: c build and tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
- os: ubuntu-latest
compiler: gcc
- os: ubuntu-20.04
- os: ubuntu-latest
compiler: clang
- os: macos-10.15
- os: macos-latest
compiler: gcc
- os: macos-10.15
- os: macos-latest
compiler: clang
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Prepare
env:
CC: ${{ matrix.compiler }}
Expand All @@ -40,9 +41,9 @@ jobs:

windows:
name: windows
runs-on: windows-2019
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: lukka/get-cmake@latest
- name: Build
run: |
Expand All @@ -54,26 +55,31 @@ jobs:
name: nvim-tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-10.15]
include:
- os: ubuntu-20.04
url: https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz
- os: macos-10.15
url: https://github.com/neovim/neovim/releases/download/nightly/nvim-macos.tar.gz
- os: ubuntu-latest
rev: nightly/nvim-linux64.tar.gz
- os: ubuntu-latest
rev: v0.9.0/nvim-linux64.tar.gz
- os: macos-latest
rev: nightly/nvim-macos.tar.gz
- os: macos-latest
rev: v0.9.0/nvim-macos.tar.gz
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: date +%F > todays-date
- name: Restore cache for today's nightly.
uses: actions/cache@v2
- name: Restore from todays cache
uses: actions/cache@v3
with:
path: _neovim
key: ${{ matrix.os }}-${{ hashFiles('todays-date') }}
key: ${{ runner.os }}-${{ matrix.rev }}-${{ hashFiles('todays-date') }}

- name: Prepare
run: |
test -d _neovim || {
mkdir -p _neovim
curl -sL ${{ matrix.url }} | tar xzf - --strip-components=1 -C "${PWD}/_neovim"
curl -sL "https://github.com/neovim/neovim/releases/download/${{ matrix.rev }}" | tar xzf - --strip-components=1 -C "${PWD}/_neovim"
}
mkdir -p ~/.local/share/nvim/site/pack/vendor/start
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ on: [push, pull_request]
jobs:
lint:
name: Lint
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Prepare
run: |
Expand All @@ -20,9 +20,9 @@ jobs:

clangformat:
name: clangformat
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Prepare clang-format
run: |
sudo apt-get update
Expand All @@ -32,11 +32,12 @@ jobs:

stylua:
name: stylua
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: JohnnyMorganz/stylua-action@v1
- uses: actions/checkout@v3
- uses: JohnnyMorganz/stylua-action@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
# CLI arguments
args: --color always --check lua/

0 comments on commit 9bc8237

Please sign in to comment.