Skip to content

Commit

Permalink
Update test in github actions and enable mingw32 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kubo committed Jun 4, 2023
1 parent cba1c8c commit 2bca1ff
Showing 1 changed file with 13 additions and 44 deletions.
57 changes: 13 additions & 44 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,13 @@ name: tests
on:
push:
pull_request:
workflow_dispatch:
inputs:
tests_on_alpine:
description: 'Tests on Alpine (true or false)'
required: true
default: true
tests_on_macos:
description: 'Tests on macOS (true or false)'
required: true
default: true
tests_on_ubuntu_arm64:
description: 'Tests on Ubuntu arm64 (true or false)'
required: true
default: true
tests_on_ubuntu_x86_64:
description: 'Tests on Ubuntu x86_64 (true or false)'
required: true
default: true
tests_on_windows:
description: 'Tests on Windows (true or false)'
required: true
default: true
tests_on_wine:
description: 'Tests on Wine (true or false)'
required: true
default: true

jobs:
tests_on_alpine:
name: Tests on Alpine (x86_64)
if: github.event.inputs.tests_on_alpine == 'true' || github.event.inputs.tests_on_alpine == ''
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true
- name: x86_64 tests on Alpine
Expand All @@ -44,10 +18,9 @@ jobs:
tests_on_macos:
name: Tests on macOS (x86_64)
if: github.event.inputs.tests_on_macos == 'true' || github.event.inputs.tests_on_macos == ''
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true
- name: x86_64 tests on macOS
Expand All @@ -56,10 +29,9 @@ jobs:
tests_on_ubuntu_arm64:
name: Tests on Ubuntu (aarch64)
if: github.event.inputs.tests_on_ubuntu_arm64 == 'true' || github.event.inputs.tests_on_ubuntu_arm64 == ''
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true
- uses: uraimo/[email protected]
Expand All @@ -77,15 +49,15 @@ jobs:
tests_on_ubuntu_x86_64:
name: Tests on Ubuntu (x86_64 and i686)
if: github.event.inputs.tests_on_ubuntu_x86_64 == 'true' || github.event.inputs.tests_on_ubuntu_x86_64 == ''
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true
- name: Install packages
run: |
sudo apt install -y gcc-multilib
sudo apt-get update
sudo apt-get install -y gcc-multilib
- name: x86_64 tests on Ubuntu
run: |
./.ci/run-cmake-test.sh x86_64-linux
Expand All @@ -95,10 +67,9 @@ jobs:
tests_on_windows:
name: Tests on Windows (x64 and x86)
if: github.event.inputs.tests_on_windows == 'true' || github.event.inputs.tests_on_windows == ''
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true
- name: x64 tests on Windows
Expand All @@ -110,22 +81,20 @@ jobs:
run: |
./.ci/run-cmake-test.sh x86-windows -A Win32
# disabled because of unmet package dependencies
tests_on_wine:
name: Tests on Wine (x64 and x86)
if: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true
- name: Install packages
run: |
sudo apt install -y g++-mingw-w64-x86-64 g++-mingw-w64-i686 wine64 wine-binfmt
sudo apt-get install -y g++-mingw-w64-x86-64 g++-mingw-w64-i686 wine64 wine-binfmt
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install -y wine32
sudo update-binfmts --import wine
sudo apt-get update
sudo apt-get install -y libgcc-s1:i386 libstdc++6:i386 wine32
sudo apt-get remove mono-runtime
- name: x64 tests on Wine
run: |
./.ci/run-cmake-test.sh x86_64-mingw32 -DCMAKE_TOOLCHAIN_FILE=../cmake/x86_64-w64-mingw32.cmake
Expand Down

0 comments on commit 2bca1ff

Please sign in to comment.