mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 23:01:30 +00:00
[Drone] Speed up drone builds (#2092)
* Speed up drone builds * Add chown for ccache * Add the cmake compiler launcher flag for ccache * Update .drone.yml * Don't optimize * Don't optimize take 2
This commit is contained in:
parent
dc004c2a9d
commit
a450779c91
11
.drone.yml
11
.drone.yml
@ -7,10 +7,19 @@ name: EQEmulator Server Linux CI
|
|||||||
concurrency:
|
concurrency:
|
||||||
limit: 1
|
limit: 1
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
host:
|
||||||
|
path: /var/lib/cache
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: server-build
|
- name: server-build
|
||||||
# Source build script https://github.com/Akkadius/akk-stack/blob/master/containers/eqemu-server/Dockerfile#L20
|
# Source build script https://github.com/Akkadius/akk-stack/blob/master/containers/eqemu-server/Dockerfile#L20
|
||||||
image: akkadius/eqemu-server:latest
|
image: akkadius/eqemu-server:latest
|
||||||
commands:
|
commands:
|
||||||
- sudo chown eqemu:eqemu /drone/src/ * -R
|
- sudo chown eqemu:eqemu /drone/src/ * -R
|
||||||
- git submodule init && git submodule update && mkdir -p build && cd build && cmake -DEQEMU_BUILD_LOGIN=ON -DEQEMU_ENABLE_BOTS=ON -DEQEMU_BUILD_LUA=ON -G 'Unix Makefiles' .. && make -j$((`nproc`-4))
|
- sudo chown eqemu:eqemu /home/eqemu/.ccache/ * -R
|
||||||
|
- git submodule init && git submodule update && mkdir -p build && cd build && cmake -DEQEMU_BUILD_LOGIN=ON -DEQEMU_ENABLE_BOTS=ON -DEQEMU_BUILD_LUA=ON -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING="-O0 -g -DNDEBUG" -G 'Unix Makefiles' .. && make -j$((`nproc`-4))
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /home/eqemu/.ccache/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user