From 00bda97f4a7da91b4646097e90d83d9c8506d09d Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Sun, 21 Jul 2024 11:59:47 +0200 Subject: [PATCH] fix: don't fail if installing one binary rock fails --- .github/workflows/build-linux-x86_64.yml | 53 ++++++++++++++-------- .github/workflows/build-macosx-aarch64.yml | 49 ++++++++++++-------- .github/workflows/build-macosx-x86_64.yml | 48 ++++++++++++-------- 3 files changed, 95 insertions(+), 55 deletions(-) diff --git a/.github/workflows/build-linux-x86_64.yml b/.github/workflows/build-linux-x86_64.yml index d3cbf76d2..0e5d92e97 100644 --- a/.github/workflows/build-linux-x86_64.yml +++ b/.github/workflows/build-linux-x86_64.yml @@ -46,48 +46,60 @@ 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 @@ -95,6 +107,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 @@ -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" diff --git a/.github/workflows/build-macosx-aarch64.yml b/.github/workflows/build-macosx-aarch64.yml index 57c3702aa..7b1666f6f 100644 --- a/.github/workflows/build-macosx-aarch64.yml +++ b/.github/workflows/build-macosx-aarch64.yml @@ -57,29 +57,35 @@ 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: | @@ -87,18 +93,22 @@ jobs: # 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 @@ -106,6 +116,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 @@ -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" diff --git a/.github/workflows/build-macosx-x86_64.yml b/.github/workflows/build-macosx-x86_64.yml index c7ebe5f87..a1f45ee95 100644 --- a/.github/workflows/build-macosx-x86_64.yml +++ b/.github/workflows/build-macosx-x86_64.yml @@ -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: @@ -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 @@ -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"