Skip to content

Commit

Permalink
back to linux
Browse files Browse the repository at this point in the history
  • Loading branch information
tstirrat committed Jul 28, 2024
1 parent ad50e07 commit e1416db
Showing 1 changed file with 24 additions and 17 deletions.
41 changes: 24 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push]

jobs:
build:
runs-on: windows-latest
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
Expand All @@ -13,18 +13,26 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
cache-dependency-path: "tests/requirements.txt"
- name: wget gbdk
uses: robinraju/release-downloader@v1
- uses: robinraju/release-downloader@v1
with:
repository: "gbdk-2020/gbdk-2020"
tag: "4.3.0"
fileName: "gbdk-win64.zip"
fileName: "gbdk-linux64.tar.gz"
extract: true
- name: Add msys64 to path
- uses: pyvista/setup-headless-display-action@v2
- name: Install wine
run: |
echo C:\msys64\usr\bin >> $env:GITHUB_PATH
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 -y --install-recommends winehq-stable winbind
wine --version
- name: Install wine-mono
run: |
wget https://github.com/madewokherd/wine-mono/releases/download/wine-mono-9.0.0/wine-mono-9.0.0-x86.msi
WINEDEBUG=fixme-all WINEDLLOVERRIDES=mscoree=d wine wine-mono-9.0.0-x86.msi
- name: pip install
shell: bash
run: |
Expand All @@ -40,21 +48,20 @@ jobs:
- name: test single rom (python)
shell: bash
run: |
cd tests
python test.py
- name: test single rom (bash)
working-directory: ./tests
- run: |
ls -alF
shell: bash
working-directory: ./tests/build
- name: test single rom (bash)
run: |
../bgb/bgb64.exe -set "DebugSrcBrk=1" -hf -stateonexit -screenonexit build/wav_test_load_and_play.bmp -rom build/wav_test_load_and_play.gb
wine ../bgb/bgb.exe -set "DebugSrcBrk=1" -autoexit -hf -stateonexit -screenonexit build/wav_test_load_and_play.bmp build/wav_test_load_and_play.gb
working-directory: ./tests
- run: |
ls -alF
ls -alF build
shell: bash
working-directory: ./tests
# - name: pytest
# shell: bash
working-directory: ./tests/build
# run: |
# cd tests
# pytest -v -s
# working-directory: ./tests

0 comments on commit e1416db

Please sign in to comment.