Skip to content

Commit

Permalink
Merge pull request #25 from Sophon96/24-testing-workflow-is-broken
Browse files Browse the repository at this point in the history
Fix build and test workflow
  • Loading branch information
Sophon96 authored Oct 4, 2023
2 parents 453ee59 + b46f2dc commit e261f28
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,11 @@ jobs:
name: Build and Test on Linux
runs-on: ubuntu-latest

defaults:
run:
shell: bash

steps:
- uses: actions/checkout@v2

- name: Setup Dependencies
run: |
sudo apt-get update
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y build-essential meson ninja-build
run: python3 -m pip install meson~=1.2.2 ninja~=1.11.1

- name: Setup build with Meson
run: meson setup build
Expand All @@ -41,7 +35,7 @@ jobs:
- uses: actions/checkout@v2

- name: Setup Dependencies
run: brew install meson ninja
run: python3 -m pip install meson~=1.2.2 ninja~=1.11.1

- name: Setup build with Meson
run: meson setup build
Expand All @@ -52,15 +46,15 @@ jobs:
- name: Test with Meson
run: meson test -C build

windows:
name: Build and Test on Windows
windows-random:
name: Build and Test on Windows (Ninja and random compiler)
runs-on: windows-latest

steps:
- uses: actions/checkout@v2

- name: Setup Dependencies
run: python -m pip install meson ninja
run: python -m pip install meson~=1.2.2 ninja~=1.11.1

- name: Setup build with Meson
run: meson setup build
Expand All @@ -71,3 +65,21 @@ jobs:
- name: Test with Meson
run: meson test -C build

windows-vs:
name: Build and Test on Windows (Visual Studio)
runs-on: windows-latest

steps:
- uses: actions/checkout@v2

- name: Setup Dependencies
run: python -m pip install meson~=1.2.2 ninja~=1.11.1

- name: Setup build with Meson
run: meson setup -Dvsenv=true build

- name: Build with Meson
run: meson compile -C build

- name: Test with Meson
run: meson test -C build

0 comments on commit e261f28

Please sign in to comment.