From 3aa8101ff65691fe1f51502cdd87aff95062ceff Mon Sep 17 00:00:00 2001 From: milkwx3 Date: Sun, 14 Jun 2026 02:36:09 +0300 Subject: [PATCH] Can someone fucking kill me --- .gitea/workflows/autobuild.yaml | 51 ++++++++++++--------------------- 1 file changed, 19 insertions(+), 32 deletions(-) diff --git a/.gitea/workflows/autobuild.yaml b/.gitea/workflows/autobuild.yaml index bfc586a..e69dcfd 100644 --- a/.gitea/workflows/autobuild.yaml +++ b/.gitea/workflows/autobuild.yaml @@ -1,77 +1,64 @@ name: Build -on: +on: push: workflow_dispatch: {} + jobs: build: - runs-on: ubuntu-latest-lite + runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - - name: Prepare minimal system and install prerequisites + - name: Install build tools run: | - set -e - sudo apt-get update -y - sudo apt-get install -y --no-install-recommends \ - ca-certificates gnupg wget curl unzip zip software-properties-common \ - build-essential cmake make libxrandr-dev mingw-w64 - sudo apt-get install -y --no-install-recommends apt-transport-https - - - 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 + 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 -o Dir::Etc::sourcelist=/tmp/only.list -o Dir::Etc::sourceparts="-" -qq + sudo apt install -y build-essential cmake zip unzip make libxrandr-dev + 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 + sudo apt install g++-mingw-w64-x86-64_14.2.0-17+27_all.deb + 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: Build makeheaders run: | - set -e cd makeheaders make cd .. - name: Fetch libraries run: | - set -e cd ${{ gitea.workspace }}/src/libraries 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 rm enet.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 rm Lua.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 rm raylib.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 rm yaml-cpp.zip - ls -la + ls + cd ../.. + - name: Compile run: | - set -e chmod +x ${{ gitea.workspace }}/compile.sh sh ${{ gitea.workspace }}/compile.sh zip -r release-linux.zip OUTPUT-Linux || true @@ -83,4 +70,4 @@ jobs: name: build-artifacts path: | release-linux.zip - release-w64.zip \ No newline at end of file + release-w64.zip