From 6c6ff265867692317f7be6b2acf14c043869bbe0 Mon Sep 17 00:00:00 2001 From: Imple Lee <80144331+ImpleLee@users.noreply.github.com> Date: Fri, 30 Aug 2024 05:34:39 +0800 Subject: [PATCH] fix auto test: use appimage love instead of tar gz (#1141) * use appimage love instead of tar gz * install libfuse2 to run appimage * replace deprecated `GabrielBB/xvfb-action` --- .github/workflows/main.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 19f4cdf39..854dec776 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -130,7 +130,7 @@ jobs: prerelease: ${{ startsWith(github.ref, 'refs/tags/pre') }} auto-test: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: build-core steps: - uses: actions/checkout@v3 @@ -148,17 +148,18 @@ jobs: - name: Download love shell: bash run: | - curl -OL --retry 5 https://github.com/love2d/love/releases/download/11.4/love-11.4-x86_64.tar.gz | tar xz - - name: Prepare PulseAudio + curl -OL --retry 5 https://github.com/love2d/love/releases/download/11.4/love-11.4-x86_64.AppImage + chmod +x love-11.4-x86_64.AppImage + - name: Prepare PulseAudio and AppImage shell: bash run: | sudo apt-get update - sudo apt-get install pulseaudio pulseaudio-utils pavucontrol alsa-oss alsa-utils -y + sudo apt-get install pulseaudio pulseaudio-utils pavucontrol alsa-oss alsa-utils libfuse2 -y - name: Run automated test - uses: GabrielBB/xvfb-action@v1 + uses: coactions/setup-xvfb@v1 with: run: | - ./dest/love ${{ env.CORE_LOVE_PACKAGE_PATH }} --test + ./love-11.4-x86_64.AppImage ${{ env.CORE_LOVE_PACKAGE_PATH }} --test build-android: runs-on: ubuntu-latest