|
| 1 | +name: Build on Debian 13 for WASM |
| 2 | +on: |
| 3 | + push: |
| 4 | + branches: [main] |
| 5 | + paths: |
| 6 | + - "src/**" |
| 7 | + - "!src/Plugins/Macos/**" |
| 8 | + - "!src/Plugins/Windows/**" |
| 9 | + - "tests/**" |
| 10 | + - "lolly/**" |
| 11 | + - "moebius/**" |
| 12 | + - "xmake.lua" |
| 13 | + - 'xmake/options.lua' |
| 14 | + - 'xmake/requires.lua' |
| 15 | + - 'xmake/targets/**' |
| 16 | + - "xmake/packages.lua" |
| 17 | + - "xmake/packages/**" |
| 18 | + - ".github/workflows/ci-debian13-wasm.yml" |
| 19 | + - "TeXmacs/tests/*.scm" |
| 20 | + - "3rdparty/**" |
| 21 | + pull_request: |
| 22 | + branches: [main] |
| 23 | + paths: |
| 24 | + - "src/**" |
| 25 | + - "!src/Plugins/Macos/**" |
| 26 | + - "!src/Plugins/Windows/**" |
| 27 | + - "tests/**" |
| 28 | + - "lolly/**" |
| 29 | + - "moebius/**" |
| 30 | + - "xmake.lua" |
| 31 | + - 'xmake/options.lua' |
| 32 | + - 'xmake/requires.lua' |
| 33 | + - 'xmake/targets/**' |
| 34 | + - "xmake/packages.lua" |
| 35 | + - "xmake/packages/**" |
| 36 | + - ".github/workflows/ci-debian13-wasm.yml" |
| 37 | + - "TeXmacs/tests/*.scm" |
| 38 | + - "3rdparty/**" |
| 39 | + workflow_dispatch: |
| 40 | + |
| 41 | +env: |
| 42 | + XMAKE_ROOT: y |
| 43 | + INSTALL_DIR: tmp/build/packages/app.mogan/ |
| 44 | + |
| 45 | +jobs: |
| 46 | + build: |
| 47 | + container: debian:13 |
| 48 | + runs-on: ubuntu-latest |
| 49 | + steps: |
| 50 | + - name: Install dependencies |
| 51 | + run: | |
| 52 | + DEBIAN_FRONTEND=noninteractive apt-get update |
| 53 | + DEBIAN_FRONTEND=noninteractive apt-get install -y gcc git 7zip unzip curl build-essential \ |
| 54 | + fonts-noto-cjk libcurl4-openssl-dev libfreetype-dev libfontconfig-dev \ |
| 55 | + libmimalloc-dev libgit2-dev zlib1g-dev libssl-dev libjpeg62-turbo-dev cmake \ |
| 56 | + pandoc python3.13 python3.13-venv python3-pip ninja-build \ |
| 57 | + libdbus-1-3 libglib2.0-0t64 libegl1 libgl-dev libxkbcommon0 |
| 58 | + # Make python3 point to python3.13 so xmake uses system Python instead of compiling its own |
| 59 | + update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.13 1 |
| 60 | + # Pre-install aqtinstall to avoid xmake pulling its own Python 3.14 |
| 61 | + python3 -m pip install --break-system-packages aqtinstall |
| 62 | + - uses: actions/checkout@v4 |
| 63 | + with: |
| 64 | + fetch-depth: 0 |
| 65 | + |
| 66 | + - uses: xmake-io/github-action-setup-xmake@v1 |
| 67 | + with: |
| 68 | + xmake-version: v3.0.7 |
| 69 | + |
| 70 | + - name: git add safe directory |
| 71 | + run: git config --global --add safe.directory '*' |
| 72 | + |
| 73 | + - name: set XMAKE_GLOBALDIR |
| 74 | + run: echo "XMAKE_GLOBALDIR=${{ runner.workspace }}/xmake-global" >> $GITHUB_ENV |
| 75 | + |
| 76 | + - name: xmake repo --update |
| 77 | + run: xmake repo --update |
| 78 | + |
| 79 | + - name: cache packages from xrepo |
| 80 | + uses: actions/cache@v4 |
| 81 | + with: |
| 82 | + path: | |
| 83 | + ${{ env.XMAKE_GLOBALDIR }}/.xmake/packages |
| 84 | + key: ${{ runner.os }}-xrepo-wasm-${{ hashFiles('**/packages.lua') }} |
| 85 | + |
| 86 | + - name: cache xmake |
| 87 | + uses: actions/cache@v4 |
| 88 | + with: |
| 89 | + path: | |
| 90 | + tmp/build/.build_cache |
| 91 | + key: ${{ runner.os }}-build-wasm-${{ hashFiles('**/packages.lua') }} |
| 92 | + |
| 93 | + - name: config |
| 94 | + run: xmake config -vD --policies=build.ccache -o tmp/build -m releasedbg -p wasm --yes |
| 95 | + - name: build |
| 96 | + run: xmake build --yes -vD stem |
0 commit comments