Updated CI pipeline build for Linux
parent
8e950e5145
commit
af1abfe41e
|
@ -27,24 +27,20 @@ jobs:
|
||||||
- name: Create build directory
|
- name: Create build directory
|
||||||
run: cmake -E make_directory build
|
run: cmake -E make_directory build
|
||||||
- name: Run CMake (for Linux)
|
- name: Run CMake (for Linux)
|
||||||
working-directory: build
|
run: cmake --preset Linux-CI
|
||||||
run: cmake -DCMAKE_INSTALL_PREFIX=/install -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DDEV_BUILD=1 -DPORTABLE=1 -DTOOLS=1 -DTESTS=1 -DDESKTOP=1 ..
|
|
||||||
if: matrix.target_os == 'linux'
|
if: matrix.target_os == 'linux'
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: build
|
run: cmake --build --preset Linux-CI
|
||||||
run: make -j `nproc`
|
|
||||||
- name: Install
|
- name: Install
|
||||||
working-directory: build
|
run: cmake --build --preset Linux-CI --target install
|
||||||
run: DESTDIR=. make install
|
|
||||||
- name: Patch library path
|
- name: Patch library path
|
||||||
working-directory: build
|
|
||||||
run: patchelf --set-rpath '.' install/colobot
|
run: patchelf --set-rpath '.' install/colobot
|
||||||
if: matrix.target_os == 'linux'
|
if: matrix.target_os == 'linux'
|
||||||
- name: Upload build
|
- name: Upload build
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{matrix.target_os}}-debug
|
name: ${{matrix.target_os}}-debug
|
||||||
path: build/install
|
path: install
|
||||||
if: matrix.host_os == 'ubuntu-20.04'
|
if: matrix.host_os == 'ubuntu-20.04'
|
||||||
- name: Create AppImage
|
- name: Create AppImage
|
||||||
working-directory: build
|
working-directory: build
|
||||||
|
@ -60,8 +56,8 @@ jobs:
|
||||||
|
|
||||||
# Prepare folder for zip
|
# Prepare folder for zip
|
||||||
mkdir -p appimage
|
mkdir -p appimage
|
||||||
cp -rp install/data appimage/data
|
cp -rp ../install/data appimage/data
|
||||||
cp -rp install/lang appimage/lang
|
cp -rp ../install/lang appimage/lang
|
||||||
cp -p Colobot-x86_64.AppImage appimage/colobot
|
cp -p Colobot-x86_64.AppImage appimage/colobot
|
||||||
if: matrix.target_os == 'linux'
|
if: matrix.target_os == 'linux'
|
||||||
- name: Upload AppImage
|
- name: Upload AppImage
|
||||||
|
|
|
@ -33,6 +33,20 @@
|
||||||
"TESTS": true,
|
"TESTS": true,
|
||||||
"DESKTOP": true
|
"DESKTOP": true
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Linux-CI",
|
||||||
|
"description": "Linux configuration for CI pipeline",
|
||||||
|
"inherits": ["CI"],
|
||||||
|
"cacheVariables": {
|
||||||
|
"CMAKE_SKIP_INSTALL_RPATH": true,
|
||||||
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
|
||||||
|
"DEV_BUILD": true,
|
||||||
|
"PORTABLE": true,
|
||||||
|
"TOOLS": true,
|
||||||
|
"TESTS": true,
|
||||||
|
"DESKTOP": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"buildPresets": [
|
"buildPresets": [
|
||||||
|
|
Loading…
Reference in New Issue