Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 32 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]'
2 changes: 1 addition & 1 deletion include/lua.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <stddef.h>


#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"
Expand Down