File tree 2 files changed +12
-6
lines changed
2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 67
67
- run : |
68
68
sudo apt-get update -y
69
69
sudo apt-get install -y libdrm-dev
70
+ - name : Fetch drm headers
71
+ run : ./.github/workflows/fetch_headers.sh
70
72
- name : Update deps
71
73
uses : actions-rs/cargo@v1
72
74
with :
@@ -105,6 +107,8 @@ jobs:
105
107
- run : |
106
108
sudo apt-get update -y
107
109
sudo apt-get install -y libdrm-dev
110
+ - name : Fetch drm headers
111
+ run : ./.github/workflows/fetch_headers.sh
108
112
- name : Update deps
109
113
uses : actions-rs/cargo@v1
110
114
with :
@@ -193,12 +197,7 @@ jobs:
193
197
echo "CARGO_TARGET_${ENV_TARGET}_LINKER=${GCC_TARGET}-gcc" >> $GITHUB_ENV
194
198
echo "BINDGEN_EXTRA_CLANG_ARGS=--sysroot=/usr/${GCC_TARGET}" >> $GITHUB_ENV
195
199
- name : Fetch drm headers
196
- run : |
197
- mkdir drm
198
- wget -O drm/drm.h https://github.com/torvalds/linux/raw/master/include/uapi/drm/drm.h
199
- wget -O drm/drm_mode.h https://github.com/torvalds/linux/raw/master/include/uapi/drm/drm_mode.h
200
- echo "LIBDRM_INCLUDE_PATH=${PWD}/drm" >> $GITHUB_ENV
201
- echo "BINDGEN_EXTRA_CLANG_ARGS=-D __user= ${BINDGEN_EXTRA_CLANG_ARGS}" >> $GITHUB_ENV
200
+ run : ./.github/workflows/fetch_headers.sh
202
201
- name : Setup Rust
203
202
uses : actions-rs/toolchain@v1
204
203
with :
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ mkdir drm
4
+ wget -O drm/drm.h https://github.com/torvalds/linux/raw/master/include/uapi/drm/drm.h
5
+ wget -O drm/drm_mode.h https://github.com/torvalds/linux/raw/master/include/uapi/drm/drm_mode.h
6
+ echo " LIBDRM_INCLUDE_PATH=${PWD} /drm" >> $GITHUB_ENV
7
+ echo " BINDGEN_EXTRA_CLANG_ARGS=-D __user= ${BINDGEN_EXTRA_CLANG_ARGS} " >> $GITHUB_ENV
You can’t perform that action at this time.
0 commit comments