Skip to content

Commit a92056a

Browse files
committed
add platform-specific dependency installation steps in release workflow
1 parent 086e6d0 commit a92056a

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/release.yml

+34
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,40 @@ jobs:
2626
- name: Install dependencies
2727
run: go mod tidy
2828

29+
- name: Install dependencies (Ubuntu)
30+
if: runner.os == 'Linux'
31+
run: |
32+
sudo apt-get update
33+
sudo apt-get install -y \
34+
libgl1-mesa-dev \
35+
libxrandr-dev \
36+
libxxf86vm-dev \
37+
libxi-dev \
38+
libxcursor-dev
39+
40+
- name: Install dependencies (Windows)
41+
if: runner.os == 'Windows'
42+
run: |
43+
choco install -y \
44+
mingw \
45+
libglvnd \
46+
libxrandr-dev \
47+
libxxf86vm-dev \
48+
libxi-dev \
49+
libxcursor-dev
50+
51+
- name: Install dependencies (macOS)
52+
if: runner.os == 'macOS'
53+
run: |
54+
brew update
55+
brew install \
56+
mesa \
57+
xquartz \
58+
xrandr \
59+
xf86-video-vmware \
60+
libxi \
61+
libxcursor
62+
2963
- name: Build project
3064
run: |
3165
if [[ ${{ matrix.os }} == 'ubuntu-latest' ]]; then

0 commit comments

Comments
 (0)