File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 with :
2121 name : friction-ci-linux-x86_64
2222 path : distfiles/builds/*/*.AppImage
23- qt6 :
24- runs-on : ubuntu-24.04
25- steps :
26- - uses : actions/checkout@v4
27- - name : Build
28- run : APT=1 QT6="ON" CI=1 MKJOBS=2 ./src/scripts/ci.sh
Original file line number Diff line number Diff line change 11name : Ubuntu
22
3- on : workflow_dispatch
3+ on : [push, pull_request]
44
55jobs :
6- jammy :
7- runs-on : ubuntu-22 .04
6+ qt5_15 :
7+ runs-on : ubuntu-24 .04
88 steps :
9- - uses : actions/checkout@v3
9+ - uses : actions/checkout@v4
1010 - name : Build
1111 run : APT=1 CI=1 MKJOBS=2 ./src/scripts/ci.sh
12- noble :
12+ qt5_15_arm :
13+ runs-on : ubuntu-24.04-arm
14+ steps :
15+ - uses : actions/checkout@v4
16+ - name : Build
17+ run : APT=1 CI=1 CPU=aarch64 MKJOBS=2 ./src/scripts/ci.sh
18+ qt6_4 :
1319 runs-on : ubuntu-24.04
1420 steps :
15- - uses : actions/checkout@v3
21+ - uses : actions/checkout@v4
1622 - name : Build
17- run : APT=1 CI=1 MKJOBS=2 ./src/scripts/ci.sh
23+ run : APT=1 QT6="ON" FFMPEG=1 CI=1 MKJOBS=2 ./src/scripts/ci.sh
24+ qt6_10 :
25+ runs-on : ubuntu-26.04
26+ steps :
27+ - uses : actions/checkout@v4
28+ - name : Build
29+ run : APT=1 QT6="ON" FFMPEG=1 CI=1 MKJOBS=2 ./src/scripts/ci.sh
Original file line number Diff line number Diff line change 1717# along with this program. If not, see <http://www.gnu.org/licenses/>.
1818#
1919
20- # Friction Qt5/Qt6 CI ( Ubuntu 24.04)
20+ # Friction Ubuntu CI
2121
2222set -e -x
2323
2424CI=${CI:- 0}
2525APT=${APT:- 0}
2626PC=${PC:- " " }
2727QT6=${QT6:- " OFF" }
28+ CPU=${CPU:- " x86_64" } # or aarch64
29+ FFMPEG=${FFMPEG:- 0}
2830
2931if [ " ${QT6} " = " ON" ]; then
3032 QTV=6
9799CWD=` pwd`
98100MKJOBS=${MKJOBS:- 4}
99101
102+ FFMPEG_URL=https://github.com/friction2d/ffmpeg
103+ FFMPEG_COMMIT=44b01dbdbe3a742b5d006a7187b63a8a30293a45
104+ FFMPEG_INSTALL=${CWD} /build-ci/ffmpeg-install
105+
100106cd ${CWD}
101107rm -rf build-ci || true
102108mkdir build-ci
103109cd build-ci
104110
111+ if [ " ${FFMPEG} " = 1 ]; then
112+ git clone ${FFMPEG_URL} ffmpeg-src
113+ cd ffmpeg-src
114+ ./configure \
115+ --enable-shared \
116+ --disable-static \
117+ --prefix=${FFMPEG_INSTALL} \
118+ --enable-gpl \
119+ --enable-version3 \
120+ --disable-programs \
121+ --disable-debug
122+ make -j${MKJOBS}
123+ make install
124+ export PKG_CONFIG_PATH=${FFMPEG_INSTALL} /lib/pkgconfig:${PKG_CONFIG_PATH}
125+ export LD_LIBRARY_PATH=${FFMPEG_INSTALL} /lib:${LD_LIBRARY_PATH}
126+ fi
127+
128+ cd ${CWD} /build-ci
129+
105130cmake -G Ninja \
106131-DCMAKE_BUILD_TYPE=Release \
107132-DCMAKE_INSTALL_PREFIX=/usr \
108133-DCMAKE_CXX_COMPILER=clang++ \
109134-DCMAKE_C_COMPILER=clang \
110- -DQSCINTILLA_INCLUDE_DIRS=/usr/include/x86_64 -linux-gnu/qt${QTV} \
135+ -DQSCINTILLA_INCLUDE_DIRS=/usr/include/${CPU} -linux-gnu/qt${QTV} \
111136-DQSCINTILLA_LIBRARIES=qscintilla2_qt${QTV} \
112137-DUSE_QT6=${QT6} \
113138..
You can’t perform that action at this time.
0 commit comments