diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5e067bc..98f685c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,15 +6,40 @@ on: types: [published] jobs: - docker-image: + # docker-image: + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v2 + # + # - name: Build and publish docker image + # uses: docker/build-push-action@v1.1.1 + # with: + # repository: faforever/lua + # username: ${{ secrets.DOCKER_USERNAME }} + # password: ${{ secrets.DOCKER_PASSWORD }} + # tag_with_ref: true + + binaries: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Build and publish docker image - uses: docker/build-push-action@v1.1.1 + - name: Build lua + run: make \ + MYCFLAGS='-O3 -fomit-frame-pointer' \ + USERCONF=$'-DLUA_USERCONFIG=\'"$(LUA)/etc/saconfig.c"\' -DUSE_READLINE' \ + EXTRA_LIBS='-lm -ldl -lreadline -lhistory' all strip + + - name: Create archive + run: | + export ARCHIVE=faf-lua-${GITHUB_REF#refs/*/v}-linux + mkdir $ARCHIVE + cp --parents -t $ARCHIVE bin/* include/*.h lib/*.a doc/*.1 + tar -czf $ARCHIVE.tar.gz $ARCHIVE + + - name: Upload release asset + uses: alexellis/upload-assets@0.2.2 + env: + GITHUB_TOKEN: ${{ github.token }} with: - repository: faforever/lua - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - tag_with_ref: true + asset_paths: '["faf-lua-*-linux.tar.gz"]' diff --git a/include/lua.h b/include/lua.h index 43bca03..e82ad9b 100644 --- a/include/lua.h +++ b/include/lua.h @@ -14,7 +14,7 @@ #include -#define LUA_VERSION "FAF Lua 5.0-0" +#define LUA_VERSION "FAF Lua 5.0-1" #define LUA_COPYRIGHT "Copyright (C) 1994-2006 Tecgraf, PUC-Rio" #define LUA_AUTHORS "R. Ierusalimschy, L. H. de Figueiredo & W. Celes" #define LUA_MODIFIED "Modified 2021 by Askaholic"