Update LICENSE year #232
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Output Project Name | |
| id: project_name | |
| run: | | |
| export NAME="${GITHUB_REPOSITORY#*/}" | |
| echo "name=${NAME}" >> $GITHUB_OUTPUT | |
| - name: Display Project Name | |
| run: | | |
| echo "Building Project '${{ steps.project_name.outputs.name }}'" | |
| # Install Lua and LuaRocks | |
| - name: Install Lua and LuaRocks | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y lua5.1 liblua5.1-0-dev luarocks | |
| # Set up environment for Lua and LuaRocks | |
| - name: Set PATH and environment variables for Lua and LuaRocks | |
| shell: bash | |
| run: | | |
| echo "$HOME/.luarocks/bin" >> $GITHUB_PATH | |
| echo "LUA_PATH=$HOME/.luarocks/share/lua/5.1/?.lua;$HOME/.luarocks/share/lua/5.1/?/init.lua;;" >> $GITHUB_ENV | |
| echo "LUA_CPATH=$HOME/.luarocks/lib/lua/5.1/?.so;;" >> $GITHUB_ENV | |
| - name: Install Lua Packages | |
| run: | | |
| luarocks --local make --dev | |
| - name: Test Project | |
| run: yue -e build.yue src -t | |
| - name: Compile Project | |
| run: yue -e build.yue src -d -y | |
| # Build the applications | |
| - uses: nhartland/love-build@v1 | |
| with: | |
| app_name: ${{ steps.project_name.outputs.name }} | |
| love_version: "11.5" | |
| # Upload the built applications | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: built-applications | |
| path: release |