-
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal: add CI checks for major Linux distros and fix build errors (#…
- Loading branch information
Showing
17 changed files
with
573 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
#include "libespm/WRLD.h" | ||
|
||
#include <algorithm> | ||
|
||
#include "libespm/RecordHeaderAccess.h" | ||
|
||
namespace espm { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Scroll down for the list of packages | ||
|
||
set -e | ||
|
||
if [[ "$1" == "--get-image-uri" ]]; then | ||
# This is the image that we'll use in our CI for testing build for this distro | ||
echo 'archlinux:base-devel' | ||
exit | ||
fi | ||
|
||
if [[ "$1" == "--ensure-deps-noninteractive" ]]; then | ||
if [[ -z "$CI" ]]; then | ||
echo "This isn't CI environment! Are you sure you didn't want to use just --ensure-deps?" | ||
exit 1 | ||
fi | ||
set -x | ||
PACMAN_ARGS="--noconfirm" | ||
pacman -Syu $PACMAN_ARGS sudo | ||
useradd -m skymp -u $CREATE_UID | ||
chown -R skymp:skymp /src | ||
|
||
cat /etc/passwd | ||
|
||
DO_ENSURE_DEPS=1 | ||
fi | ||
|
||
if [[ "$1" == "--ensure-deps" ]]; then | ||
DO_ENSURE_DEPS=1 | ||
PACMAN_ARGS="--confirm" | ||
fi | ||
|
||
if [[ -z "$DO_ENSURE_DEPS" ]]; then | ||
echo "idk what to do" | ||
exit 1 | ||
fi | ||
|
||
packages='' | ||
|
||
addpackage() { | ||
packages+="$1 " | ||
} | ||
|
||
# These are some basic packages that are essential for C++ build config that we're using | ||
addpackage base-devel | ||
addpackage cmake | ||
addpackage clang | ||
addpackage ninja # would likely build with the regular make, but I haven't tried | ||
# gdb is also recommended for debugging but isn't required | ||
|
||
# These are needed for some parts of the client and server, as well as some build scripts | ||
addpackage nodejs # 23 as of 20241222 | ||
# alternatively, nodejs-lts-iron for 20 or nodejs-lts-hydrogen for 18 | ||
# I only found 20, not 22 - https://archlinux.org/packages/?sort=&q=nodejs&maintainer=&flagged= | ||
addpackage yarn | ||
|
||
# Some packages that you likely already have, but we'll just make sure | ||
addpackage git | ||
addpackage zip | ||
addpackage unzip | ||
addpackage tar | ||
addpackage curl # required by vcpkg | ||
addpackage pkgconf # required by Catch2 (C++ testing framework) | ||
addpackage linux-headers # required by OpenSSL(?) | ||
|
||
echo Will now run the installation command, please check it and confirm | ||
set -x # this will print the list that we're going to install | ||
sudo pacman -S --needed $PACMAN_ARGS $packages |
Oops, something went wrong.