Skip to content

Commit

Permalink
Add GitHub Actions to build ClutTeX
Browse files Browse the repository at this point in the history
  • Loading branch information
minoki committed Sep 1, 2024
1 parent 9fe5253 commit a0a2f82
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.gitignore export-ignore
.gitattributes export-ignore
/.github export-ignore
35 changes: 35 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on: [push, pull_request]
name: build
jobs:
lunarml:
name: Build
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install lua5.3 liblua5.3-dev
docker pull ghcr.io/minoki/lunarml:0.2.0
sudo ln -s /usr/bin/lua /usr/local/bin/texlua
- name: Install LuaFileSystem
run: |
curl -LO "https://github.com/lunarmodules/luafilesystem/archive/refs/tags/v1_8_0.tar.gz"
tar xf v1_8_0.tar.gz
cd luafilesystem-1_8_0
make LUA_VERSION=5.3
sudo make LUA_VERSION=5.3 install
- name: Build
run: |
make lunarml="docker run --rm --platform linux/amd64 -v \"$(pwd)\":/work -w /work ghcr.io/minoki/lunarml:0.2.0 lunarml"
- name: Show version
run: make check-version
- name: Archive
run: make archive
- name: Upload
uses: actions/upload-artifact@v4
with:
name: archive
path: |
cluttex-*.tar.gz
cluttex-*.zip

0 comments on commit a0a2f82

Please sign in to comment.