Skip to content

Commit

Permalink
Merge 804f0a8 into f64e235
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Nov 18, 2023
2 parents f64e235 + 804f0a8 commit 835efba
Show file tree
Hide file tree
Showing 23 changed files with 2,109 additions and 375 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/build.yml
Expand Up @@ -9,7 +9,14 @@ concurrency:
jobs:

build-ubuntu:
strategy:
matrix:
configuration:
- [ 'dynamic', '' ]
- [ 'embeded', '--enable-embeded-resources' ]
- [ 'system', '--with-system-lua-sources' ]
runs-on: ubuntu-22.04
name: Build Ubuntu ${{ matrix.configuration[0] }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -41,7 +48,8 @@ jobs:
./bootstrap.sh
./configure \
--disable-font-variations \
--with-manual
--with-manual \
${{ matrix.configuration[1] }}
echo "VERSION=$(./build-aux/git-version-gen .tarball-version)" >> $GITHUB_ENV
echo "MAKEFLAGS=-j$(nproc) -Otarget" >> $GITHUB_ENV
- name: Make
Expand All @@ -68,6 +76,7 @@ jobs:
build-nix:
runs-on: ubuntu-22.04
name: Build Nix
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
26 changes: 14 additions & 12 deletions .github/workflows/test.yml
Expand Up @@ -13,14 +13,14 @@ jobs:
fail-fast: false
matrix:
luaVersion:
- '5.4'
- '5.3'
- '5.2'
- '5.1'
- 'luajit'
# - 'luajit-openresty'
- [ '5.4', 'MYCFLAGS=-fPIC' ]
- [ '5.3', 'MYCFLAGS=-fPIC' ]
- [ '5.2', 'MYCFLAGS=-fPIC' ]
- [ '5.1', 'CFLAGS="-O2 -Wall -DLUA_USE_LINUX -fPIC"' ]
- [ 'luajit', 'XCFLAGS=-fPIC' ]
# - [ 'luajit-openresty', 'XCFLAGS=-fPIC' ]
runs-on: ubuntu-22.04
name: Test on Lua ${{ matrix.luaVersion }}
name: Test on Lua ${{ matrix.luaVersion[0] }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -38,7 +38,7 @@ jobs:
with:
path: |
lua_modules
key: luarocks-${{ matrix.luaVersion }}-${{ hashFiles('Makefile-luarocks', 'sile.rockspec.in') }}
key: luarocks-${{ matrix.luaVersion[0] }}-${{ hashFiles('Makefile-luarocks', 'sile.rockspec.in') }}
- name: Cache Rust
uses: Swatinem/rust-cache@v2
- name: Install system dependencies
Expand All @@ -48,7 +48,8 @@ jobs:
- name: Setup ‘lua’
uses: leafo/gh-actions-lua@v10
with:
luaVersion: ${{ matrix.luaVersion }}
luaVersion: ${{ matrix.luaVersion[0] }}
luaCompileFlags: ${{ matrix.luaVersion[1] }}
- name: Setup ‘cargo’
uses: actions-rs/toolchain@v1
- name: Setup ‘luarocks’
Expand All @@ -69,9 +70,10 @@ jobs:
run: |
./bootstrap.sh
./configure \
${{ matrix.luaVersion[1] }} \
--enable-developer LUACHECK=false NIX=false \
--disable-font-variations \
--with${{ !startsWith(matrix.luaVersion, 'luajit') && 'out' || '' }}-luajit \
--with${{ !startsWith(matrix.luaVersion[0], 'luajit') && 'out' || '' }}-luajit \
--without-manual
- name: Make
run: |
Expand All @@ -80,7 +82,7 @@ jobs:
run: |
make selfcheck
- name: Test Busted
continue-on-error: ${{ matrix.luaVersion == '5.1' }}
continue-on-error: ${{ matrix.luaVersion[0] == '5.1' }}
timeout-minutes: ${{ runner.debug && 20 || 2 }}
run: |
make busted
Expand All @@ -95,5 +97,5 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: test-${{ matrix.luaVersion }}-actuals
name: test-${{ matrix.luaVersion[0] }}-actuals
path: tests/*.actual
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -88,11 +88,14 @@ sile-lua.1
.tarball-version
.built-subdirs
*.so
*.o
core/version.lua
core/features.lua
target/
completions/
core/pathsetup.lua
src/embed.rs
src/embed-includes.rs

# Nix symlink to builds
result
Expand Down

0 comments on commit 835efba

Please sign in to comment.