Skip to content

Commit a533767

Browse files
committed
Setup OpenGL in linux action, another way
1 parent ee0a5f4 commit a533767

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/cmake.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,18 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
14-
- uses: openrndr/[email protected]
14+
15+
- name: Setup OpenGL
16+
run: |
17+
sudo apt-get update
18+
sudo apt-get install -y mesa-utils xvfb
19+
xvfb-run glxinfo
1520
1621
- name: Configure
1722
run: cmake -B ${{ github.workspace }}/build -S ${{ github.workspace }}
1823

1924
- name: Build
20-
run: cmake --build ${{ github.workspace }}/build
25+
run: cmake --build ${{ github.workspace }}/build --target winx
2126

2227
build-windows:
2328
runs-on: windows-latest
@@ -28,4 +33,4 @@ jobs:
2833
run: cmake -B ${{ github.workspace }}/build -S ${{ github.workspace }}
2934

3035
- name: Build
31-
run: cmake --build ${{ github.workspace }}/build
36+
run: cmake --build ${{ github.workspace }}/build --target winx

0 commit comments

Comments
 (0)