-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (43 loc) · 1.34 KB
/
test-pixi.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Run tests with pixi
on:
workflow_dispatch:
pull_request:
jobs:
pixi-test:
name: '[pixi:${{ matrix.os }}:env:${{ matrix.pixi_env }}]'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [
ubuntu-22.04,
macos-latest,
windows-2019
]
pixi_env: [
default,
ionic
]
steps:
- uses: actions/checkout@v4
- name: Install mesa (software only) OpenGL driver
if: contains(matrix.os, 'ubuntu')
shell: bash
run: |
sudo apt-get update
# See https://github.com/robotology/gz-sim-yarp-plugins/pull/214#issuecomment-2387088665
sudo apt install libegl-mesa0 libgl1-mesa-dri
- name: Set up pixi
uses: prefix-dev/[email protected]
with:
run-install: true
cache: false
- name: Print pixi info
run: pixi info
- name: Build the project
run: pixi run -e ${{ matrix.pixi_env }} build
# Windows disabled due to https://github.com/robotology/gz-sim-yarp-plugins/issues/205
# macOS on Ionic disabled due to https://github.com/robotology/gz-sim-yarp-plugins/issues/215
- name: Run tests
if: "!contains(matrix.os, 'windows') && !(contains(matrix.os, 'macos') && matrix.pixi_env == 'ionic')"
run: pixi run -e ${{ matrix.pixi_env }} test