mirror of https://gitlab.freedesktop.org/mesa/mesa
ci: Fixes macos.yml
Stick to macos-11 to prevent accident broken always install meson with pip to prevent pull new version of python Cc: mesa-stable Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Acked-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19615>
This commit is contained in:
parent
4d058a7034
commit
81b4af2849
|
@ -9,9 +9,10 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
glx_option: ['dri', 'xlib']
|
glx_option: ['dri', 'xlib']
|
||||||
runs-on: macos-latest
|
runs-on: macos-11
|
||||||
env:
|
env:
|
||||||
GALLIUM_DUMP_CPU: true
|
GALLIUM_DUMP_CPU: true
|
||||||
|
MESON_EXEC: /Users/runner/Library/Python/3.11/bin/meson
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
@ -25,28 +26,28 @@ jobs:
|
||||||
brew "libxcb"
|
brew "libxcb"
|
||||||
brew "libxdamage"
|
brew "libxdamage"
|
||||||
brew "libxext"
|
brew "libxext"
|
||||||
brew "meson"
|
brew "ninja"
|
||||||
brew "pkg-config"
|
brew "pkg-config"
|
||||||
brew "python@3.10"
|
brew "python@3.10"
|
||||||
EOL
|
EOL
|
||||||
|
|
||||||
brew update
|
brew update
|
||||||
brew bundle --verbose
|
brew bundle --verbose
|
||||||
- name: Install Mako
|
- name: Install Mako and meson
|
||||||
run: pip3 install --user mako
|
run: pip3 install --user mako meson
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: |
|
run: |
|
||||||
cat > native_config <<EOL
|
cat > native_config <<EOL
|
||||||
[binaries]
|
[binaries]
|
||||||
llvm-config = '/usr/local/opt/llvm/bin/llvm-config'
|
llvm-config = '/usr/local/opt/llvm/bin/llvm-config'
|
||||||
EOL
|
EOL
|
||||||
meson . build --native-file=native_config -Dbuild-tests=true -Dosmesa=true -Dgallium-drivers=swrast -Dglx=${{ matrix.glx_option }}
|
$MESON_EXEC . build --native-file=native_config -Dbuild-tests=true -Dosmesa=true -Dgallium-drivers=swrast -Dglx=${{ matrix.glx_option }}
|
||||||
- name: Build
|
- name: Build
|
||||||
run: meson compile -C build
|
run: $MESON_EXEC compile -C build
|
||||||
- name: Test
|
- name: Test
|
||||||
run: meson test -C build --print-errorlogs
|
run: $MESON_EXEC test -C build --print-errorlogs
|
||||||
- name: Install
|
- name: Install
|
||||||
run: meson install -C build --destdir $PWD/install
|
run: $MESON_EXEC install -C build --destdir $PWD/install
|
||||||
- name: 'Upload Artifact'
|
- name: 'Upload Artifact'
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
|
Loading…
Reference in New Issue