@@ -23,11 +23,13 @@ jobs:
2323 strategy :
2424 fail-fast : false
2525 matrix :
26- build_type : [Release, RelWithDebInfo]
26+ build_type : [Release, RelWithDebInfo, Debug ]
2727
2828 name : Linux Static ${{ matrix.build_type }}
2929 runs-on : ubuntu-latest
30- container : ubuntu:20.04
30+ container :
31+ image : ubuntu:20.04
32+ options : --privileged
3133 env :
3234 CCACHE_DIR : ${{ github.workspace }}/.ccache
3335 TZ : Asia/Shanghai
4749 apt upgrade -y
4850 apt install -y build-essential git perl cmake ninja-build wget
4951 - name : Checking out sources
50- uses : actions/checkout@v4
52+ uses : actions/checkout@v6
5153 with :
5254 submodules : " recursive"
5355 - name : Install build dependencies
5860 apt install -y libfontconfig1-dev libfreetype6-dev libx11-dev libx11-xcb-dev libxext-dev libxfixes-dev libxi-dev libxrender-dev libxcb1-dev libxcb-glx0-dev libxcb-keysyms1-dev libxcb-image0-dev libxcb-shm0-dev libxcb-icccm4-dev libxcb-sync0-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0-dev libxcb-xinerama0-dev libxkbcommon-dev libxkbcommon-x11-dev
5961 apt install -y libharfbuzz-dev libsm-dev libdrm-dev
6062 apt install -y '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
63+ apt install -y bubblewrap
6164 - name : Install Qt
6265 run : |
6366 cd ..
@@ -69,12 +72,18 @@ jobs:
6972 mkdir build
7073 cd build
7174 cmake ../Project_LemonLime -GNinja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DLEMON_BUILD_INFO="Build for Linux" -DLEMON_BUILD_EXTRA_INFO="Build on $(uname -sr)" -DCMAKE_PREFIX_PATH=../qt6/bin
75+ cmake --build . --parallel $(nproc)
76+ - name : Run tests
77+ run : |
78+ ctest --test-dir ../build --output-on-failure --timeout 120
79+ - name : Package
80+ run : |
81+ cd ../build
7282 cmake --build . --target package --parallel $(nproc)
73- cd ..
74- cd Project_LemonLime
83+ cd ../Project_LemonLime
7584 cp ../build/lemon ./
7685 - name : Upload artifact
77- uses : actions/upload-artifact@v4
86+ uses : actions/upload-artifact@v7
7887 with :
7988 name : LemonLime-linux-qt6-x86_64-${{ matrix.build_type }}
8089 path : lemon
0 commit comments