ci: Introduce a CI pipeline for GitLab.

This commit is contained in:
Giovanni Mascellani
2023-07-05 14:43:25 +02:00
committed by Alexandre Julliard
parent c39c5b3907
commit 4a3ad750e0
Notes: Alexandre Julliard 2023-08-29 22:15:58 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/271
5 changed files with 115 additions and 0 deletions

19
gitlab/build-linux Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
echo "Building $(git log -1)"
echo "---"
COMMIT=$(git rev-parse --short HEAD)
set -Eeuxo pipefail
./autogen.sh
rm -fr build
mkdir build
cd build
../configure --enable-demos && make -j$(nproc) && make -j$(nproc) crosstest || touch ../pipeline_failed
mkdir -p ../artifacts/$COMMIT
rsync -Rr doc/* tests/*.exe ../artifacts/$COMMIT
git reset --hard