From 2931ba168d22024c0c1600780d5fc33346426bff Mon Sep 17 00:00:00 2001 From: milkwx3 Date: Sun, 14 Jun 2026 02:29:13 +0300 Subject: [PATCH] why my goofy ahh runner not downloadin anythin? --- .gitea/workflows/autobuild.yaml | 50 +++++++++++++++++++++------------ 1 file changed, 32 insertions(+), 18 deletions(-) diff --git a/.gitea/workflows/autobuild.yaml b/.gitea/workflows/autobuild.yaml index e69dcfd..239c97d 100644 --- a/.gitea/workflows/autobuild.yaml +++ b/.gitea/workflows/autobuild.yaml @@ -1,64 +1,77 @@ name: Build -on: +on: push: workflow_dispatch: {} - jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-latest-lite steps: - name: Checkout uses: actions/checkout@v4 - - name: Install build tools + - name: Prepare minimal system and install prerequisites run: | - 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 + 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 (idempotent) + 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 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 enet.zip + unzip -q 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 Lua.zip + unzip -q 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 raylib.zip + unzip -q 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 yaml-cpp.zip + unzip -q yaml-cpp.zip mv yaml-cpp-master yaml-cpp rm yaml-cpp.zip - ls - + ls -la 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 @@ -71,3 +84,4 @@ jobs: path: | release-linux.zip release-w64.zip +``` \ No newline at end of file