Skip to content

Commit

Permalink
fix: don't fail if installing one binary rock fails
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Jul 21, 2024
1 parent 7244a3a commit 00bda97
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 55 deletions.
53 changes: 34 additions & 19 deletions .github/workflows/build-linux-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,55 +46,68 @@ jobs:
run: |
printenv
- name: Install `LuaFileSystem` Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install luafilesystem
luarocks --verbose pack luafilesystem
luarocks --local --lua-version=5.1 install luafilesystem
luarocks pack luafilesystem
- name: Install `luarocks-build-rust-mlua` Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install luarocks-build-rust-mlua
luarocks --verbose pack luarocks-build-rust-mlua
luarocks --local --lua-version=5.1 install luarocks-build-rust-mlua
luarocks pack luarocks-build-rust-mlua
- name: Install TOML Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install toml
luarocks --local --lua-version=5.1 install toml
luarocks --verbose pack toml
- name: Install `toml-edit` Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install toml-edit
luarocks --verbose pack toml-edit
luarocks --local --lua-version=5.1 install toml-edit
luarocks pack toml-edit
- name: Install `fzy` Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install fzy
luarocks --verbose pack fzy
luarocks --local --lua-version=5.1 install fzy
luarocks pack fzy
- name: Install `jsregexp` Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install jsregexp
luarocks --verbose pack jsregexp
luarocks --local --lua-version=5.1 install jsregexp
luarocks pack jsregexp
- name: Install `curl` headers
if: always()
run: sudo apt-get install -y libcurl4-gnutls-dev
- name: Install `lua-curl` Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install lua-curl CURL_INCDIR=/usr/include/x86_64-linux-gnu
luarocks --verbose pack lua-curl
luarocks --local --lua-version=5.1 install lua-curl CURL_INCDIR=/usr/include/x86_64-linux-gnu
luarocks pack lua-curl
- name: Install `tree-sitter-orgmode` Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install tree-sitter-orgmode
luarocks --verbose pack tree-sitter-orgmode
luarocks --local --lua-version=5.1 install tree-sitter-orgmode
luarocks pack tree-sitter-orgmode
- name: Install `tree-sitter-norg` Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install tree-sitter-norg
luarocks --verbose pack tree-sitter-norg
luarocks --local --lua-version=5.1 install tree-sitter-norg
luarocks pack tree-sitter-norg
- name: Install `tree-sitter-norg-meta` Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install tree-sitter-norg-meta
luarocks --verbose pack tree-sitter-norg-meta
luarocks --local --lua-version=5.1 install tree-sitter-norg-meta
luarocks pack tree-sitter-norg-meta
- name: Get tree-sitter-parsers.json
if: always()
uses: actions/checkout@v4
with:
repository: nvim-neorocks/nurr
sparse-checkout: |
tree-sitter-parsers.json
path: nurr
- name: Install tree-sitter parsers
if: always()
run: |
# Filter out parsers that need their sources generated
# We might want to consider adding those too
Expand All @@ -105,8 +118,10 @@ jobs:
|| echo "tree-sitter-$lang has not been packaged yet"
done
- name: Regenerate Manifests and HTML
if: always()
run: luarocks-admin make-manifest --lua-version=5.1 .
- name: commit-linux-x86_64
if: always()
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: update linux-x86_64 build artifacts"
Expand Down
49 changes: 31 additions & 18 deletions .github/workflows/build-macosx-aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,55 +57,66 @@ jobs:
run: |
printenv
- name: Install `LuaFileSystem` Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install luafilesystem
luarocks --verbose pack luafilesystem
luarocks --local --lua-version=5.1 install luafilesystem
luarocks pack luafilesystem
- name: Install `luarocks-build-rust-mlua` Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install luarocks-build-rust-mlua
luarocks --verbose pack luarocks-build-rust-mlua
luarocks --local --lua-version=5.1 install luarocks-build-rust-mlua
luarocks pack luarocks-build-rust-mlua
- name: Install TOML Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install toml
luarocks --verbose pack toml
luarocks --local --lua-version=5.1 install toml
luarocks pack toml
- name: Install `toml-edit` Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install toml-edit
luarocks --verbose pack toml-edit
luarocks --local --lua-version=5.1 install toml-edit
luarocks pack toml-edit
- name: Install `fzy` Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install fzy
luarocks --verbose pack fzy
luarocks --local --lua-version=5.1 install fzy
luarocks pack fzy
- name: Install `jsregexp` Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install jsregexp
luarocks --verbose pack jsregexp
luarocks --local --lua-version=5.1 install jsregexp
luarocks pack jsregexp
# FIXME
# - name: Install `lua-curl` Package
# run: |
# nix profile install nixpkgs#curl.dev
# luarocks --verbose --local --lua-version=5.1 install lua-curl
# luarocks --verbose pack lua-curl
- name: Install `tree-sitter-orgmode` Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install tree-sitter-orgmode
luarocks --verbose pack tree-sitter-orgmode
luarocks --local --lua-version=5.1 install tree-sitter-orgmode
luarocks pack tree-sitter-orgmode
- name: Install `tree-sitter-norg` Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install tree-sitter-norg
luarocks --verbose pack tree-sitter-norg
luarocks --local --lua-version=5.1 install tree-sitter-norg
luarocks pack tree-sitter-norg
- name: Install `tree-sitter-norg-meta` Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install tree-sitter-norg-meta
luarocks --verbose pack tree-sitter-norg-meta
luarocks --local --lua-version=5.1 install tree-sitter-norg-meta
luarocks pack tree-sitter-norg-meta
- name: Get tree-sitter-parsers.json
if: always()
uses: actions/checkout@v4
with:
repository: nvim-neorocks/nurr
sparse-checkout: |
tree-sitter-parsers.json
path: nurr
- name: Install tree-sitter parsers
if: always()
run: |
# Filter out parsers that need their sources generated
# We might want to consider adding those too
Expand All @@ -116,8 +127,10 @@ jobs:
&& luarocks pack "tree-sitter-$lang" || echo "Failed to pack tree-sitter-$lang"
done
- name: Regenerate Manifests and HTML
if: always()
run: luarocks-admin make-manifest --lua-version=5.1 .
- name: commit-macosx-aarch64
if: always()
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: update macosx-aarch64 build artifacts"
Expand Down
48 changes: 30 additions & 18 deletions .github/workflows/build-macosx-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,46 +55,55 @@ jobs:
run: |
printenv
- name: Install `LuaFileSystem` Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install luafilesystem
luarocks --verbose pack luafilesystem
luarocks --local --lua-version=5.1 install luafilesystem
luarocks pack luafilesystem
- name: Install `luarocks-build-rust-mlua` Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install luarocks-build-rust-mlua
luarocks --verbose pack luarocks-build-rust-mlua
luarocks --local --lua-version=5.1 install luarocks-build-rust-mlua
luarocks pack luarocks-build-rust-mlua
- name: Install TOML Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install toml
luarocks --verbose pack toml
luarocks --local --lua-version=5.1 install toml
luarocks pack toml
- name: Install `toml-edit` Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install toml-edit
luarocks --verbose pack toml-edit
luarocks --local --lua-version=5.1 install toml-edit
luarocks pack toml-edit
- name: Install `fzy` Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install fzy
luarocks --verbose pack fzy
luarocks --local --lua-version=5.1 install fzy
luarocks pack fzy
- name: Install `jsregexp` Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install jsregexp
luarocks --verbose pack jsregexp
luarocks --local --lua-version=5.1 install jsregexp
luarocks pack jsregexp
# FIXME:
# - name: Install `lua-curl` Package
# run: |
# luarocks --verbose --local --lua-version=5.1 install lua-curl
# luarocks --verbose pack lua-curl
- name: Install `tree-sitter-orgmode` Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install tree-sitter-orgmode
luarocks --verbose pack tree-sitter-orgmode
luarocks --local --lua-version=5.1 install tree-sitter-orgmode
luarocks pack tree-sitter-orgmode
- name: Install `tree-sitter-norg` Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install tree-sitter-norg
luarocks --verbose pack tree-sitter-norg
luarocks --local --lua-version=5.1 install tree-sitter-norg
luarocks pack tree-sitter-norg
- name: Install `tree-sitter-norg-meta` Package
if: always()
run: |
luarocks --verbose --local --lua-version=5.1 install tree-sitter-norg-meta
luarocks --verbose pack tree-sitter-norg-meta
luarocks --local --lua-version=5.1 install tree-sitter-norg-meta
luarocks pack tree-sitter-norg-meta
- name: Get tree-sitter-parsers.json
uses: actions/checkout@v4
with:
Expand All @@ -103,6 +112,7 @@ jobs:
tree-sitter-parsers.json
path: nurr
- name: Install tree-sitter parsers
if: always()
run: |
# Filter out parsers that need their sources generated
# We might want to consider adding those too
Expand All @@ -113,8 +123,10 @@ jobs:
&& luarocks pack "tree-sitter-$lang" || echo "Failed to pack tree-sitter-$lang"
done
- name: Regenerate Manifests and HTML
if: always()
run: luarocks-admin make-manifest --lua-version=5.1 .
- name: commit-macosx-x86_64
if: always()
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: update macosx-x86_64 build artifacts"
Expand Down

0 comments on commit 00bda97

Please sign in to comment.