File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ jobs:
121
121
mkdir wine_shims
122
122
rustc patches/bcryptprimitives.rs -Copt-level=3 -Clto=fat --out-dir wine_shims --target x86_64-pc-windows-gnu
123
123
echo "WINEPATH=$(pwd)/wine_shims" >> $GITHUB_ENV
124
+ wine echo || true # create ~/.wine to ensure wine works even when the build system is restricted using landlock
124
125
125
126
- name : Build
126
127
run : ./y.sh build --sysroot none
Original file line number Diff line number Diff line change @@ -49,6 +49,15 @@ pub(super) fn lock_build(cargo: &Path, frozen: bool) {
49
49
& [ env:: current_dir ( ) . unwrap ( ) . join ( "build" ) , env:: current_dir ( ) . unwrap ( ) . join ( "dist" ) ] ,
50
50
access_all,
51
51
) )
52
+ . unwrap ( )
53
+ . add_rules ( path_beneath_rules (
54
+ & [
55
+ #[ allow( deprecated) ]
56
+ & std:: env:: home_dir ( ) . unwrap ( ) . join ( ".wine" ) ,
57
+ Path :: new ( "/run/user/" ) ,
58
+ ] ,
59
+ access_all,
60
+ ) )
52
61
. unwrap ( ) ;
53
62
54
63
let ruleset = if frozen {
You can’t perform that action at this time.
0 commit comments