Skip to content

Commit

Permalink
use native Meson installation
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrauch committed Apr 12, 2024
1 parent 327a2e0 commit 47eee16
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
strategy:
fail-fast: false
matrix:
meson_version: ["0.61", "1.3", 'latest']
meson_version: ["native", "0.61", "1.3", 'latest']
linux_version: ["almalinux:8", "almalinux:9", "ubuntu:20.04", "ubuntu:22.04"]
exclude:
- { linux_version: "almalinux:8", meson_version: "1.3" }
Expand All @@ -52,26 +52,29 @@ jobs:
shell: bash
run: |
if command -v apt &> /dev/null; then
apt update && apt -y install lsb-release python3 python3-pip ninja-build
apt update && apt -y install lsb-release python3 python3-pip meson ninja-build
fi
if command -v dnf &> /dev/null; then
dnf -y install 'dnf-command(config-manager)'
dnf config-manager --set-enabled powertools || dnf config-manager --set-enabled crb
dnf -y install redhat-release python3 python3-pip ninja-build gcc
dnf -y install redhat-release python3 python3-pip meson ninja-build gcc
fi
- uses: actions/checkout@v4

- run: pip3 install colcon-package-information

- run: pip3 install meson==${{ matrix.meson_version }}
if: ${{ matrix.meson_version != 'latest' }}
if: ${{ matrix.meson_version != 'latest' && matrix.meson_version != 'native' }}

- run: pip3 install --upgrade meson
if: ${{ matrix.meson_version == 'latest' }}

- run: pip3 install .

- run: pip3 uninstall -y meson
if: ${{ matrix.meson_version == 'native' }}

- name: list
working-directory: test/meson_test_project
run: |
Expand Down

0 comments on commit 47eee16

Please sign in to comment.