ci(actions): Disable testing on OpenResty, not currently enabled in mlua #2488
This file contains 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: Build | |
on: [ push, pull_request ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-ubuntu: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Cache test fonts | |
uses: actions/cache@v3 | |
with: | |
path: | | |
.fonts | |
.sources | |
key: fonts-${{ hashFiles('Makefile-fonts') }} | |
- name: Cache lua_modules | |
uses: actions/cache@v3 | |
with: | |
path: | | |
lua_modules | |
key: luarocks-${{ hashFiles('Makefile-luarocks', 'sile.rockspec.in') }} | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install cargo fonts-sil-gentiumplus ghostscript graphviz jq libarchive-tools libfontconfig1-dev libharfbuzz-dev libicu-dev libluajit-5.1-dev libpng-dev luajit lua-sec lua-socket lua-zlib-dev luarocks poppler-utils | |
- name: Configure | |
run: | | |
./bootstrap.sh | |
./configure \ | |
--with-luajit \ | |
--disable-font-variations \ | |
--without-system-luarocks \ | |
--with-manual | |
echo "VERSION=$(./build-aux/git-version-gen .tarball-version)" >> $GITHUB_ENV | |
echo "MAKEFLAGS=-j$(nproc) -Otarget" >> $GITHUB_ENV | |
- name: Make | |
run: | | |
make | |
- name: Package | |
run: | | |
make dist | |
- name: Upload artifacts | |
if: ${{ !contains(github.ref, 'refs/tags/v') }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: sile-${{ env.VERSION }} | |
path: sile-${{ env.VERSION }}.zip | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: github.repository == 'sile-typesetter/sile' && startsWith(github.ref, 'refs/tags/v') | |
with: | |
body_path: sile-${{ env.VERSION }}.md | |
files: | | |
sile-${{ env.VERSION }}.pdf | |
sile-${{ env.VERSION }}.zip | |
sile-${{ env.VERSION }}.tar.xz | |
build-nix: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Cache test fonts | |
uses: actions/cache@v3 | |
with: | |
path: | | |
.fonts | |
.sources | |
key: fonts-${{ hashFiles('Makefile-fonts') }} | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v5 | |
- name: Cache Nix dependencies | |
uses: DeterminateSystems/magic-nix-cache-action@v2 | |
- name: Setup developer environment | |
run: | | |
nix develop --command ./bootstrap.sh | |
nix develop --configure | |
nix develop --command make | |
- name: Run HB6+ only regressions | |
run: | | |
nix develop --command make regressions TESTSRCS=tests/variations-axis.sil |