Skip to content

Commit

Permalink
fixup! GHA: Add build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuhiro-t committed Nov 12, 2024
1 parent 07e5dea commit 7785fc0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,14 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Linux setup
with:
submodules: recursive
- name: Prepare for i386
if: matrix.host == 'i686-w64-mingw32'
run: |
sudo dpkg --add-architecture i386
- name: Linux setup
run: |
sudo apt-get update
sudo apt-get install \
gcc-mingw-w64 \
Expand All @@ -104,7 +109,6 @@ jobs:
wine
- name: Configure autotools
run: |
git submodule update --init --depth 1
autoreconf -i && \
./configure --disable-dependency-tracking --enable-werror \
--host="$HOST" LIBS="-pthread"
Expand All @@ -113,7 +117,6 @@ jobs:
make -j$(nproc)
make -j$(nproc) check TESTS=""
- name: Run tests
if: matrix.host == 'x86_64-w64-mingw32'
run: |
export WINEPATH=/usr/x86_64-w64-mingw32/lib
export WINEPATH="/usr/${{ matrix.host }}/lib;$(winepath -w /usr/lib/x86_64-linux-gnu/wine/x86_64-windows)"
wine test.exe

0 comments on commit 7785fc0

Please sign in to comment.