-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated SDL and added cache on linux
- Loading branch information
Showing
1 changed file
with
38 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,15 +114,36 @@ jobs: | |
submodules: recursive | ||
- name: Install dependencies | ||
run: sudo apt-get install gcc g++ git cmake ninja-build lsb-release libsdl2-dev libpng-dev libsdl2-net-dev libzip-dev zipcmp zipmerge ziptool nlohmann-json3-dev libtinyxml2-dev libspdlog-dev libboost-dev libopengl-dev | ||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: linux-ccache-${{ github.ref }}-${{ github.sha }} | ||
restore-keys: | | ||
linux-ccache-${{ github.ref }} | ||
linux-ccache- | ||
- name: Cache build folders | ||
uses: actions/cache@v4 | ||
with: | ||
key: linux-build-${{ github.ref }}-${{ github.sha }} | ||
restore-keys: | | ||
linux-build-${{ github.ref }} | ||
linux-build- | ||
path: | | ||
SDL2-2.30.3 | ||
tinyxml2-10.0.0 | ||
libzip-1.10.1 | ||
- name: Install latest SDL | ||
run: | | ||
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" | ||
wget https://www.libsdl.org/release/SDL2-2.24.1.tar.gz | ||
tar -xzf SDL2-2.24.1.tar.gz | ||
cd SDL2-2.24.1 | ||
if [ ! -d "SDL2-2.30.3" ]; then | ||
wget https://www.libsdl.org/release/SDL2-2.30.3.tar.gz | ||
tar -xzf SDL2-2.30.3.tar.gz | ||
fi | ||
cd SDL2-2.30.3 | ||
./configure --enable-hidapi-libusb | ||
make -j 10 | ||
sudo make install | ||
sudo cp -av /usr/local/lib/libSDL* /lib/x86_64-linux-gnu/ | ||
- name: Install latest tinyxml2 | ||
run: | | ||
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" | ||
|
@@ -134,6 +155,20 @@ jobs: | |
cmake .. | ||
make | ||
sudo make install | ||
- name: Install libzip without crypto | ||
run: | | ||
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" | ||
if [ ! -d "libzip-1.10.1" ]; then | ||
wget https://github.com/nih-at/libzip/releases/download/v1.10.1/libzip-1.10.1.tar.gz | ||
tar -xzf libzip-1.10.1.tar.gz | ||
fi | ||
cd libzip-1.10.1 | ||
mkdir -p build | ||
cd build | ||
cmake .. -DENABLE_COMMONCRYPTO=OFF -DENABLE_GNUTLS=OFF -DENABLE_MBEDTLS=OFF -DENABLE_OPENSSL=OFF | ||
make | ||
sudo make install | ||
sudo cp -av /usr/local/lib/libzip* /lib/x86_64-linux-gnu/ | ||
- name: Download starship.o2r | ||
uses: actions/download-artifact@v4 | ||
with: | ||
|