From 436ec4b35c9b02bc4040b29111cee4e4a0919078 Mon Sep 17 00:00:00 2001 From: Lucas Machado Zainote <95252125+lucasmz1@users.noreply.github.com> Date: Sat, 28 Oct 2023 06:33:25 -0300 Subject: [PATCH] Update blank.yml --- .github/workflows/blank.yml | 76 ++++++++++++++++++++++++++++++------- 1 file changed, 62 insertions(+), 14 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 067c8aa..d6d5caf 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -24,6 +24,40 @@ jobs: build-stable: # The type of runner that the job will run on runs-on: ubuntu-20.04 + env: + yaqti: 6.6.0 + steps: + - name: Checkout Upstream Repo + uses: actions/checkout@v3 + with: + repository: Dolphin_emu_Appimage + ref: master + + - name: Checkout Submodules + if: steps.cache-submodules.outputs.cache-hit != 'true' + run: git submodule update --init --recursive -j $(getconf _NPROCESSORS_ONLN) + + - name: Checkout AppImage Repo + uses: actions/checkout@v3 + with: + clean: false + path: ci + + # Runs the Dolphin action + - name: Get Date + id: get-date + run: | + echo "date=$(/bin/date -u "+%Y%m%d")" >> $GITHUB_OUTPUT + shell: bash + - name: cache + uses: actions/cache@v3 + with: + path: ~/.ccache + key: build-ccache-${{ steps.get-date.outputs.date }} + restore-keys: | + build-ccache- + env: + CCACHE_MAXSIZE: 200M # Steps represent a sequence of tasks that will be executed as part of the job steps: @@ -32,6 +66,31 @@ jobs: - name: Prerequisites run: | + curl -sLO https://files.pythonhosted.org/packages/47/42/351389ca36c7adfc5f4e92d086cdb2bdbde13f1b89ee882f4a1cab2183ac/yaqti-2021.7.29-py3-none-any.whl + python3 -m pip install yaqti-2021.7.29-py3-none-any.whl + pyver=$(python3 --version | awk '{print $2}') + curl -sL https://raw.githubusercontent.com/qurious-pixel/yaqti/fetch/yaqti/fetchers.py -o $HOME/.local/lib/python${pyver%.*}/site-packages/yaqti/fetchers.py + python -m yaqti install --os linux --platform desktop --version ${{ env.yaqti }} --modules gcc_64 --set-envs --install-deps + curl -sLO https://files.pythonhosted.org/packages/47/42/351389ca36c7adfc5f4e92d086cdb2bdbde13f1b89ee882f4a1cab2183ac/yaqti-2021.7.29-py3-none-any.whl + python3 -m pip install yaqti-2021.7.29-py3-none-any.whl + pyver=$(python3 --version | awk '{print $2}') + curl -sL https://raw.githubusercontent.com/qurious-pixel/yaqti/fetch/yaqti/fetchers.py -o $HOME/.local/lib/python${pyver%.*}/site-packages/yaqti/fetchers.py + python -m yaqti install --os linux --platform desktop --version ${{ env.yaqti }} --modules gcc_64 --set-envs --install-deps + sudo apt-get install -y build-essential dialog dpkg libbluetooth-dev liblz4-dev liblzma-dev libssl-dev libopus-dev libpng-dev libsystemd-dev \ + libzip-dev libzstd-dev zlib1g-dev libasound2-dev libpulse-dev pulseaudio p7zip p7zip-full libsfml-dev libminiupnpc-dev libmbedtls-dev libpugixml-dev \ + libbz2-dev liblzo2-dev libxi-dev libavcodec-dev libudev-dev libusb-1.0-0-dev libevdev-dev libc6-dev libhidapi-dev libavformat-dev libavdevice-dev \ + libfmt-dev libwayland-dev libxrandr-dev libglu1-mesa-dev libcurl4-openssl-dev x11-utils zenity wget curl git gettext ccache make cmake ninja-build \ + libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-icccm4 libxcb-image0-dev libxcb-cursor-dev + export LASTCOMMIT=$(git log --pretty=format:%H -1) + export DOLPHINVER=$(wget -qO- https://dolphin-emu.org/download/dev/${LASTCOMMIT} | grep '' | awk '{print $NF}' | cut -d '<' -f 1) + echo "DOLPHIN Build $DOLPHINVER" + echo "DOLPHINVER=$DOLPHINVER" >> $GITHUB_ENV + sed -i "s|\${DOLPHIN_WC_DESCRIBE}|$DOLPHINVER|g" Source/Core/Common/scmrev.h.in + PATCHELFVER=0.14.5 + curl -sL https://github.com/NixOS/patchelf/releases/download/${PATCHELFVER}/patchelf-${PATCHELFVER}-x86_64.tar.gz -o /tmp/patchelf.tar.gz + tar -xvf /tmp/patchelf.tar.gz --directory /tmp/ ./bin/patchelf --strip-components=2 + sudo mv /tmp/patchelf /usr/bin + patchelf --version sudo add-apt-repository ppa:okirby/qt6-backports -y sudo apt update sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa -y @@ -63,21 +122,10 @@ jobs: cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /home/runner/work/Dolphin_emu_Appimage/Dolphin_emu_Appimage/lucas/usr/lib/ cp -r /usr/lib/x86_64-linux-gnu/qt6/plugins/ /home/runner/work/Dolphin_emu_Appimage/Dolphin_emu_Appimage/lucas/usr/lib/ cp dolphin-emu.desktop dolphin-emu.png AppRun libunionpreload.so lucas/ + export Qt_DIR="${{github.workspace}}/qt/${{ env.yaqti }}/gcc_64/lib/cmake/Qt6" + mkdir -p "$HOME/.ccache" cd ./dolphin-emu - git checkout master - git submodule update --init --recursive \ - Externals/mGBA \ - Externals/spirv_cross \ - Externals/zlib-ng \ - Externals/libspng \ - Externals/VulkanMemoryAllocator \ - Externals/cubeb \ - Externals/implot \ - Externals/gtest \ - Externals/rcheevos \ - Externals/fmt \ - && git pull --recurse-submodules - mkdir Build && cd Build + git submodule update --init --recursive -j $(getconf _NPROCESSORS_ONLN) cmake .. -DCMAKE_C_COMPILER=clang-16 -DCMAKE_CXX_COMPILER=clang++-16 -DENABLE_TESTS=OFF -Wno-dev -DCMAKE_INSTALL_PREFIX="/home/runner/work/Dolphin_emu_Appimage/Dolphin_emu_Appimage/lucas/usr/" && make make install cd ..