Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add regression testing based on decomp.me scratches #66

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/workflows/regression.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Regression

on:
push:
paths-ignore:
- '*.md'
- 'LICENSE'
pull_request:

env:
DOCKER_BUILDKIT: 1

jobs:
build_and_test:
name: Regression test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y file unzip wget dos2unix binutils-arm-none-eabi binutils-powerpc-linux-gnu binutils-mips-linux-gnu

sudo dpkg --add-architecture i386
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
sudo apt-get update -qq
sudo apt-get install -yqq --allow-downgrades libc6:i386 libgcc-s1:i386 libstdc++6:i386 wine

pipx install poetry

- name: Build release
run: docker build --build-arg build_type=Release --target export --output build .

- name: Clone test suite
shell: bash
run: |
git clone --recursive https://github.com/ConorBobbleHat/wibo-test-suite

- name: Cache compilers
uses: actions/cache@v3
with:
path: wibo-test-suite/decomp.me/backend/compilers/download_cache
key: ${{ runner.os }}-compilers-${{ hashFiles('wibo-test-suite/decomp.me/backend/compilers/compilers.*.yaml') }}

- name: Wine setup
shell: bash
run: |
mkdir -p "${WINEPREFIX}"
wineboot --init
env:
WINEPREFIX: /tmp/wine

- name: Run test suite
shell: bash
run: |
cd wibo-test-suite
./setup.sh
./run_compare_wine_wibo.sh $(realpath ../build/wibo)
Loading