Skip to content

Commit 968121e

Browse files
committed
more cursed fuckery of hell
1 parent ed84b67 commit 968121e

File tree

1 file changed

+16
-20
lines changed

1 file changed

+16
-20
lines changed

.github/workflows/build-lua.yml

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,28 @@ jobs:
99
build-lua:
1010
name: Build Lua in Steam Runtime
1111
runs-on: ubuntu-latest
12-
container:
13-
image: registry.gitlab.steamos.cloud/steamrt/scout/sdk
14-
options: --user root
1512
env:
1613
LUA_VERSION: 5.4.6
1714
steps:
18-
- name: Install build dependencies
19-
run: |
20-
apt-get update
21-
apt-get install -y curl build-essential
22-
23-
- name: Download and extract Lua
24-
run: |
25-
cd /tmp
26-
curl -L "https://www.lua.org/ftp/lua-${LUA_VERSION}.tar.gz" -o lua.tar.gz
27-
tar xzf lua.tar.gz
28-
cd "lua-${LUA_VERSION}"
29-
30-
- name: Build Lua
31-
run: |
32-
cd "/tmp/lua-${LUA_VERSION}"
33-
make MYCFLAGS=-fPIC MYLDFLAGS=-shared linux
15+
- name: Build in Steam Runtime container
16+
uses: addnab/docker-run-action@v3
17+
with:
18+
image: registry.gitlab.steamos.cloud/steamrt/scout/sdk
19+
options: -v ${{ github.workspace }}:/work
20+
run: |
21+
apt-get update
22+
apt-get install -y curl build-essential
23+
cd /tmp
24+
curl -L "https://www.lua.org/ftp/lua-${LUA_VERSION}.tar.gz" -o lua.tar.gz
25+
tar xzf lua.tar.gz
26+
cd "lua-${LUA_VERSION}"
27+
make MYCFLAGS=-fPIC MYLDFLAGS=-shared linux
28+
mkdir -p /work/artifacts
29+
cp src/liblua.so /work/artifacts/liblua5.4.so
3430
3531
- name: Upload Lua library
3632
uses: actions/upload-artifact@v4
3733
with:
3834
name: steamrt-lua
39-
path: /tmp/lua-${{ env.LUA_VERSION }}/src/liblua.so
35+
path: artifacts/liblua5.4.so
4036
if-no-files-found: error

0 commit comments

Comments
 (0)