Skip to content

Commit

Permalink
attempt to use build.lua instead
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdevries committed Jul 6, 2023
1 parent f923a46 commit 829c63e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/docgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ jobs:
path: _neovim
key: ${{ runner.os }}-${{ matrix.url }}-${{ hashFiles('todays-date') }}

- name: Cache rust items
uses: actions/cache@v3
with:
path: |
~/.rustup/
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Prepare
run: |
test -d _neovim || {
Expand All @@ -35,6 +47,10 @@ jobs:
git clone https://github.com/tjdevries/tree-sitter-lua ~/.local/share/nvim/site/pack/vendor/start/tree-sitter-lua
ln -s $(pwd) ~/.local/share/nvim/site/pack/vendor/start
- name: Run build scripts
run: |
nvim -l build/init.lua
- name: Build parser
run: |
# We have to build the parser every single time to keep up with parser changes
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ jobs:
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Build rust items
run: |
cargo build --workspace --bins
- name: Prepare
run: |
# ${{ matrix.manager }} update
Expand All @@ -58,6 +54,11 @@ jobs:
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim
ln -s $(pwd) ~/.local/share/nvim/site/pack/vendor/start
- name: Run build scripts
run: |
nvim -l build/init.lua
- name: Run tests
run: |
export PATH="${PWD}/_neovim/bin:${PATH}"
Expand Down

0 comments on commit 829c63e

Please sign in to comment.