Can someone fucking kill me

This commit is contained in:
milkwx3
2026-06-14 02:36:09 +03:00
parent afc280c7be
commit 3aa8101ff6
+19 -32
View File
@@ -1,77 +1,64 @@
name: Build name: Build
on: on:
push: push:
workflow_dispatch: {} workflow_dispatch: {}
jobs: jobs:
build: build:
runs-on: ubuntu-latest-lite runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Prepare minimal system and install prerequisites - name: Install build tools
run: | run: |
set -e echo "deb [signed-by=/usr/share/keyrings/ubuntu-archive-keyring.gpg] http://archive.ubuntu.com/ubuntu noble main" | sudo tee /tmp/only.list
sudo apt-get update -y sudo apt-get update -o Dir::Etc::sourcelist=/tmp/only.list -o Dir::Etc::sourceparts="-" -qq
sudo apt-get install -y --no-install-recommends \ sudo apt install -y build-essential cmake zip unzip make libxrandr-dev
ca-certificates gnupg wget curl unzip zip software-properties-common \ wget http://ftp.ru.debian.org/debian/pool/main/g/gcc-mingw-w64/g++-mingw-w64-x86-64_14.2.0-17+27_all.deb
build-essential cmake make libxrandr-dev mingw-w64 sudo apt install g++-mingw-w64-x86-64_14.2.0-17+27_all.deb
sudo apt-get install -y --no-install-recommends apt-transport-https wget http://ftp.ru.debian.org/debian/pool/main/g/gcc-mingw-w64/gcc-mingw-w64-x86-64_14.2.0-17+27_all.deb
sudo apt install gcc-mingw-w64-x86-64_14.2.0-17+27_all.deb
- name: Add Ubuntu archive (if needed) and update
run: |
set -e
echo "deb [signed-by=/usr/share/keyrings/ubuntu-archive-keyring.gpg] http://archive.ubuntu.com/ubuntu noble main" | sudo tee /etc/apt/sources.list.d/noble.list
sudo apt-get update -o Dir::Etc::sourcelist=/etc/apt/sources.list.d/noble.list -o Dir::Etc::sourceparts="-" -qq || true
- name: Install mingw-w64 from .deb packages
run: |
set -e
wget -q http://ftp.ru.debian.org/debian/pool/main/g/gcc-mingw-w64/g++-mingw-w64-x86-64_14.2.0-17+27_all.deb -O /tmp/gpp-mingw.deb
wget -q http://ftp.ru.debian.org/debian/pool/main/g/gcc-mingw-w64/gcc-mingw-w64-x86-64_14.2.0-17+27_all.deb -O /tmp/gcc-mingw.deb
sudo dpkg -i /tmp/gpp-mingw.deb /tmp/gcc-mingw.deb || sudo apt-get -f install -y --no-install-recommends
rm -f /tmp/gpp-mingw.deb /tmp/gcc-mingw.deb
- name: Build makeheaders - name: Build makeheaders
run: | run: |
set -e
cd makeheaders cd makeheaders
make make
cd .. cd ..
- name: Fetch libraries - name: Fetch libraries
run: | run: |
set -e
cd ${{ gitea.workspace }}/src/libraries cd ${{ gitea.workspace }}/src/libraries
curl -L -o enet.zip https://github.com/lsalzman/enet/archive/refs/heads/master.zip curl -L -o enet.zip https://github.com/lsalzman/enet/archive/refs/heads/master.zip
unzip -q enet.zip unzip enet.zip
mv enet-master enet mv enet-master enet
rm enet.zip rm enet.zip
curl -L -o Lua.zip https://github.com/walterschell/Lua/archive/refs/heads/master.zip curl -L -o Lua.zip https://github.com/walterschell/Lua/archive/refs/heads/master.zip
unzip -q Lua.zip unzip Lua.zip
mv Lua-master Lua mv Lua-master Lua
rm Lua.zip rm Lua.zip
curl -L -o raylib.zip https://github.com/raysan5/raylib/archive/refs/heads/master.zip curl -L -o raylib.zip https://github.com/raysan5/raylib/archive/refs/heads/master.zip
unzip -q raylib.zip unzip raylib.zip
mv raylib-master raylib mv raylib-master raylib
rm raylib.zip rm raylib.zip
curl -L -o yaml-cpp.zip https://github.com/jbeder/yaml-cpp/archive/refs/heads/master.zip curl -L -o yaml-cpp.zip https://github.com/jbeder/yaml-cpp/archive/refs/heads/master.zip
unzip -q yaml-cpp.zip unzip yaml-cpp.zip
mv yaml-cpp-master yaml-cpp mv yaml-cpp-master yaml-cpp
rm yaml-cpp.zip rm yaml-cpp.zip
ls -la ls
cd ../.. cd ../..
- name: Compile - name: Compile
run: | run: |
set -e
chmod +x ${{ gitea.workspace }}/compile.sh chmod +x ${{ gitea.workspace }}/compile.sh
sh ${{ gitea.workspace }}/compile.sh sh ${{ gitea.workspace }}/compile.sh
zip -r release-linux.zip OUTPUT-Linux || true zip -r release-linux.zip OUTPUT-Linux || true
@@ -83,4 +70,4 @@ jobs:
name: build-artifacts name: build-artifacts
path: | path: |
release-linux.zip release-linux.zip
release-w64.zip release-w64.zip