Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
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
78 changes: 78 additions & 0 deletions .github/workflows/ci-lolly-debian13.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: CI for lolly on Debian 13

on:
push:
branches: [ main ]
paths:
- 'lolly/Data/**'
- 'lolly/Kernel/**'
- 'lolly/Plugins/**'
- 'lolly/System/**'
- 'lolly/lolly/**'
- 'lolly/tests/**'
- 'lolly/xmake.lua'
- '.github/workflows/ci-lolly-debian13.yml'
pull_request:
branches: [ main ]
paths:
- 'lolly/Data/**'
- 'lolly/Kernel/**'
- 'lolly/Plugins/**'
- 'lolly/System/**'
- 'lolly/lolly/**'
- 'lolly/tests/**'
- 'lolly/xmake.lua'
- '.github/workflows/ci-lolly-debian13.yml'
workflow_dispatch:

env:
XMAKE_ROOT: y
QT_QPA_PLATFORM: offscreen

jobs:
build:
container: debian:13
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
malloc:
[mimalloc, jemalloc, default]
steps:
- name: Install dependencies
run: |
DEBIAN_FRONTEND=noninteractive apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y gcc git 7zip unzip curl build-essential \
fonts-noto-cjk libcurl4-openssl-dev libfreetype-dev libfontconfig-dev \
libmimalloc-dev libgit2-dev zlib1g-dev libssl-dev libjpeg62-turbo-dev cmake \
pandoc xmake python3.13 python3.13-venv python3-pip ninja-build \
libdbus-1-3 libglib2.0-0t64 libegl1 libgl-dev libxkbcommon0
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.13 1
python3 -m pip install --break-system-packages aqtinstall
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: git add safe directory
run: git config --global --add safe.directory '*'
- name: set XMAKE_GLOBALDIR
run: echo "XMAKE_GLOBALDIR=${{ runner.workspace }}/xmake-global" >> $GITHUB_ENV
- name: xmake repo update
run: xmake repo --update
- name: cache packages from xrepo
uses: actions/cache@v4
with:
path: |
${{ env.XMAKE_GLOBALDIR }}/.xmake/packages
key: ${{ runner.os }}-xrepo-qt683-${{ hashFiles('**/packages.lua') }}
- name: cache xmake
uses: actions/cache@v4
with:
path: |
build/.build_cache
key: ${{ runner.os }}-build-qt683-${{ hashFiles('**/packages.lua') }}
- name: config
run: xmake config -vD --policies=build.ccache -m releasedbg --yes --malloc=${{ matrix.malloc }} --enable_tests=true
- name: build
run: xmake build --yes -vD liblolly
- name: test
run: xmake test "lolly_tests/*"
65 changes: 65 additions & 0 deletions .github/workflows/ci-lolly-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: CI for lolly on macOS

on:
push:
branches: [ main ]
paths:
- 'lolly/Data/**'
- 'lolly/Kernel/**'
- 'lolly/Plugins/**'
- 'lolly/System/**'
- 'lolly/lolly/**'
- 'lolly/tests/**'
- 'lolly/xmake.lua'
- '.github/workflows/ci-lolly-macos.yml'
pull_request:
branches: [ main ]
paths:
- 'lolly/Data/**'
- 'lolly/Kernel/**'
- 'lolly/Plugins/**'
- 'lolly/System/**'
- 'lolly/lolly/**'
- 'lolly/tests/**'
- 'lolly/xmake.lua'
- '.github/workflows/ci-lolly-macos.yml'
workflow_dispatch:

jobs:
macosbuild:
strategy:
matrix:
os: [macos-14]
arch: [arm64]
runs-on: ${{ matrix.os }}
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: set XMAKE_GLOBALDIR
run: echo "XMAKE_GLOBALDIR=${{ runner.workspace }}/xmake-global" >> $GITHUB_ENV
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: v3.0.4
actions-cache-folder: '.xmake-cache'
- name: xmake repo update
run: xmake repo --update
- name: cache packages from xrepo
uses: actions/cache@v4
with:
path: |
${{ env.XMAKE_GLOBALDIR }}/.xmake/packages
key: xrepo-${{ runner.os }}-${{ matrix.arch }}-${{ hashFiles('xmake/vars.lua', 'lolly/xmake.lua') }}
- name: cache xmake
uses: actions/cache@v4
with:
path: |
${{ github.workspace }}/build/.build_cache
key: xmake-build-${{ runner.os }}-${{ matrix.arch }}-${{ hashFiles('xmake/vars.lua', 'lolly/xmake.lua') }}
- name: config
run: xmake config --policies=build.ccache -m releasedbg --yes --enable_tests=true
- name: build
run: xmake build --yes -vD liblolly
- name: test
run: xmake test "lolly_tests/*"
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
name: Build on wasm
name: CI for lolly on wasm

on:
push:
branches: [ main ]
paths:
- 'Kernel/**'
- 'System/**'
- 'lolly/**'
- 'tests/**'
- '.github/workflows/ci-xmake-wasm.yml'
- 'xmake.lua'
- 'lolly/Data/**'
- 'lolly/Kernel/**'
- 'lolly/Plugins/**'
- 'lolly/System/**'
- 'lolly/lolly/**'
- 'lolly/tests/**'
- 'lolly/xmake.lua'
- '.github/workflows/ci-lolly-wasm.yml'
pull_request:
branches: [ main ]
paths:
- 'Kernel/**'
- 'System/**'
- 'lolly/**'
- 'tests/**'
- '.github/workflows/ci-xmake-wasm.yml'
- 'xmake.lua'
- 'lolly/Data/**'
- 'lolly/Kernel/**'
- 'lolly/Plugins/**'
- 'lolly/System/**'
- 'lolly/lolly/**'
- 'lolly/tests/**'
- 'lolly/xmake.lua'
- '.github/workflows/ci-lolly-wasm.yml'
workflow_dispatch:

jobs:
linuxbuild:
runs-on: ubuntu-22.04
if: false # temporarily disabled
runs-on: ubuntu-latest
steps:
- uses: elves/setup-elvish@v1
with:
Expand All @@ -33,15 +38,15 @@ jobs:
echo "XMAKE_GLOBALDIR=${{ runner.workspace }}/.xmake-global" >> "${{ github.env }}"
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: v2.8.7
xmake-version: v3.0.4
- name: update repo
run: |
xmake repo -u
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: cache xmake
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
${{ env.XMAKE_GLOBALDIR }}/.xmake/packages
Expand All @@ -54,27 +59,27 @@ jobs:
- name: test
run: elvish bin/test_wasm "tests/*"
windowsbuild:
runs-on: windows-2019
if: false # temporarily disabled
runs-on: windows-2025
env:
# Force xmake to a specific folder (for cache)
XMAKE_GLOBALDIR: "${{ github.workspace }}\\.xmake-global"
steps:
- uses: elves/setup-elvish@v1
with:
elvish-version: 0.19.2
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: v2.8.7
xmake-version: v3.0.4
- name: update repo
run: |
xrepo update-repo
- name: git crlf
run: git config --global core.autocrlf false
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: cache packages from xrepo
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
${{ env.XMAKE_GLOBALDIR }}/.xmake/packages
Expand All @@ -85,4 +90,3 @@ jobs:
run: xmake build --yes -vD
- name: test
run: elvish bin/test_wasm "tests/*"

62 changes: 62 additions & 0 deletions .github/workflows/ci-lolly-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: CI for lolly on Windows

on:
push:
branches: [ main ]
paths:
- 'lolly/Data/**'
- 'lolly/Kernel/**'
- 'lolly/Plugins/**'
- 'lolly/System/**'
- 'lolly/lolly/**'
- 'lolly/tests/**'
- 'lolly/xmake.lua'
- '.github/workflows/ci-lolly-windows.yml'
pull_request:
branches: [ main ]
paths:
- 'lolly/Data/**'
- 'lolly/Kernel/**'
- 'lolly/Plugins/**'
- 'lolly/System/**'
- 'lolly/lolly/**'
- 'lolly/tests/**'
- 'lolly/xmake.lua'
- '.github/workflows/ci-lolly-windows.yml'
workflow_dispatch:

env:
XMAKE_GLOBALDIR: "${{ github.workspace }}\\.xmake-global"

jobs:
windowsbuild:
runs-on: windows-2025
steps:
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: v3.0.4
- name: update repo
run: xrepo update-repo
- name: git crlf
run: git config --global core.autocrlf false
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: cache packages from xrepo
uses: actions/cache@v4
with:
path: |
${{ env.XMAKE_GLOBALDIR }}/.xmake/packages
key: qt683-${{ runner.os }}-${{ runner.arch }}-xrepo-${{ hashFiles('xmake/vars.lua', 'lolly/xmake.lua') }}
- name: cache xmake
uses: actions/cache@v4
with:
path: |
${{ github.workspace }}/build/.build_cache
key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('xmake/vars.lua', 'lolly/xmake.lua') }}
- name: config
run: xmake config --policies=build.ccache --yes -vD -m releasedbg --plat=windows --enable_tests=true
- name: build
run: xmake build --yes -vD liblolly
- name: test
run: xmake test "lolly_tests/*"
2 changes: 0 additions & 2 deletions .github/workflows/ci-moebius-debian13.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:
- 'moebius/Scheme/**'
- 'moebius/moebius/**'
- 'moebius/tests/**'
- 'moebius/bench/**'
- 'moebius/xmake.lua'
- '.github/workflows/ci-moebius-debian13.yml'
pull_request:
Expand All @@ -20,7 +19,6 @@ on:
- 'moebius/Scheme/**'
- 'moebius/moebius/**'
- 'moebius/tests/**'
- 'moebius/bench/**'
- 'moebius/xmake.lua'
- '.github/workflows/ci-moebius-debian13.yml'
workflow_dispatch:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/ci-moebius-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:
- 'moebius/Scheme/**'
- 'moebius/moebius/**'
- 'moebius/tests/**'
- 'moebius/bench/**'
- 'moebius/xmake.lua'
- '.github/workflows/ci-moebius-macos.yml'
pull_request:
Expand All @@ -20,7 +19,6 @@ on:
- 'moebius/Scheme/**'
- 'moebius/moebius/**'
- 'moebius/tests/**'
- 'moebius/bench/**'
- 'moebius/xmake.lua'
- '.github/workflows/ci-moebius-macos.yml'
workflow_dispatch:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/ci-moebius-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:
- 'moebius/Scheme/**'
- 'moebius/moebius/**'
- 'moebius/tests/**'
- 'moebius/bench/**'
- 'moebius/xmake.lua'
- '.github/workflows/ci-moebius-windows.yml'
pull_request:
Expand All @@ -20,7 +19,6 @@ on:
- 'moebius/Scheme/**'
- 'moebius/moebius/**'
- 'moebius/tests/**'
- 'moebius/bench/**'
- 'moebius/xmake.lua'
- '.github/workflows/ci-moebius-windows.yml'
workflow_dispatch:
Expand Down
Loading
Loading