From dc77879e2d947f45f0fea1ca100b57e2d877563a Mon Sep 17 00:00:00 2001 From: BlackMATov Date: Sat, 5 Apr 2025 02:01:23 +0700 Subject: [PATCH] readme badges! --- .github/workflows/{all.yml => lua5.1.yml} | 2 +- .github/workflows/lua5.4.yml | 21 +++++++++++++++++++++ .github/workflows/luajit.yml | 21 +++++++++++++++++++++ README.md | 12 +++++++++--- 4 files changed, 52 insertions(+), 4 deletions(-) rename .github/workflows/{all.yml => lua5.1.yml} (91%) create mode 100644 .github/workflows/lua5.4.yml create mode 100644 .github/workflows/luajit.yml diff --git a/.github/workflows/all.yml b/.github/workflows/lua5.1.yml similarity index 91% rename from .github/workflows/all.yml rename to .github/workflows/lua5.1.yml index ad4192e..4844d47 100644 --- a/.github/workflows/all.yml +++ b/.github/workflows/lua5.1.yml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: false matrix: - lua_version: ["luajit", "5.1", "5.4"] + lua_version: ["5.1"] operating_system: ["ubuntu-latest", "macos-latest", "windows-latest"] name: ${{matrix.operating_system}}-${{matrix.lua_version}} steps: diff --git a/.github/workflows/lua5.4.yml b/.github/workflows/lua5.4.yml new file mode 100644 index 0000000..5764fb1 --- /dev/null +++ b/.github/workflows/lua5.4.yml @@ -0,0 +1,21 @@ +name: all + +on: [push, pull_request] + +jobs: + build: + runs-on: ${{matrix.operating_system}} + strategy: + fail-fast: false + matrix: + lua_version: ["5.4"] + operating_system: ["ubuntu-latest", "macos-latest", "windows-latest"] + name: ${{matrix.operating_system}}-${{matrix.lua_version}} + steps: + - uses: actions/checkout@v4 + - uses: ilammy/msvc-dev-cmd@v1 + - uses: leafo/gh-actions-lua@v11 + with: + luaVersion: ${{matrix.lua_version}} + - run: | + lua ./develop/all.lua diff --git a/.github/workflows/luajit.yml b/.github/workflows/luajit.yml new file mode 100644 index 0000000..3b2352a --- /dev/null +++ b/.github/workflows/luajit.yml @@ -0,0 +1,21 @@ +name: all + +on: [push, pull_request] + +jobs: + build: + runs-on: ${{matrix.operating_system}} + strategy: + fail-fast: false + matrix: + lua_version: ["luajit"] + operating_system: ["ubuntu-latest", "macos-latest", "windows-latest"] + name: ${{matrix.operating_system}}-${{matrix.lua_version}} + steps: + - uses: actions/checkout@v4 + - uses: ilammy/msvc-dev-cmd@v1 + - uses: leafo/gh-actions-lua@v11 + with: + luaVersion: ${{matrix.lua_version}} + - run: | + lua ./develop/all.lua diff --git a/README.md b/README.md index e27b065..de708a1 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,19 @@ > Evolved ECS (Entity-Component-System) for Lua -[![language][badge.language]][language] +[![lua5.1][badge.lua5.1]][lua5.1] +[![lua5.4][badge.lua5.4]][lua5.4] +[![luajit][badge.luajit]][luajit] [![license][badge.license]][license] -[badge.language]: https://img.shields.io/badge/language-Lua-orange +[badge.lua5.1]: https://img.shields.io/github/actions/workflow/status/BlackMATov/evolved.lua/.github/workflows/lua5.1.yml?label=Lua%205.1 +[badge.lua5.4]: https://img.shields.io/github/actions/workflow/status/BlackMATov/evolved.lua/.github/workflows/lua5.4.yml?label=Lua%205.4 +[badge.luajit]: https://img.shields.io/github/actions/workflow/status/BlackMATov/evolved.lua/.github/workflows/luajit.yml?label=LuaJIT [badge.license]: https://img.shields.io/badge/license-MIT-blue -[language]: https://en.wikipedia.org/wiki/Lua_(programming_language) +[lua5.1]: https://github.com/BlackMATov/evolved.lua/actions?query=workflow%3Alua5.1 +[lua5.4]: https://github.com/BlackMATov/evolved.lua/actions?query=workflow%3Alua5.4 +[luajit]: https://github.com/BlackMATov/evolved.lua/actions?query=workflow%3Aluajit [license]: https://en.wikipedia.org/wiki/MIT_License [evolved]: https://github.com/BlackMATov/evolved.lua