diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c95f7a0..6842805 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,20 +28,21 @@ jobs: fileName: "gbdk-linux64.tar.gz" extract: true tarBall: true - # - name: Install wine - # run: | - # sudo dpkg --add-architecture i386 - # sudo mkdir -pm755 /etc/apt/keyrings - # sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key - # sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources - # sudo apt update - # sudo apt install --install-recommends winehq-stable - # # sudo apt install -y winetricks - # # sudo apt install -y winbind - - name: Install docker-wine + - uses: pyvista/setup-headless-display-action@v2 + - name: Install wine run: | - wget https://raw.githubusercontent.com/scottyhardy/docker-wine/master/docker-wine - chmod +x docker-wine + sudo dpkg --add-architecture i386 + sudo mkdir -pm755 /etc/apt/keyrings + sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key + sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources + sudo apt update + sudo apt install --install-recommends winehq-stable + # sudo apt install -y winetricks + # sudo apt install -y winbind + # - name: Install docker-wine + # run: | + # wget https://raw.githubusercontent.com/scottyhardy/docker-wine/master/docker-wine + # chmod +x docker-wine - uses: schmiddim/action-wget-unzip@v2 with: url: "https://bgb.bircd.org/bgbw64.zip" diff --git a/tests/bgb_get_snapshot.py b/tests/bgb_get_snapshot.py index 03d7722..e0ba2c9 100644 --- a/tests/bgb_get_snapshot.py +++ b/tests/bgb_get_snapshot.py @@ -42,7 +42,7 @@ def make_and_run(rom_relative): screenshot_path = rom_path_full.with_suffix('.bmp') subprocess.run([ - "../docker-wine", + "/usr/bin/env", "wine", "../bgb/bgb64.exe", "-set \"DebugSrcBrk=1\"",