Skip to content

Commit 1c73035

Browse files
committed
Support Linuxulator on FreeBSD
1 parent 7902be7 commit 1c73035

File tree

4 files changed

+300
-58
lines changed

4 files changed

+300
-58
lines changed

.github/workflows/build.yml

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,36 @@ jobs:
8080
- os: ubuntu-latest
8181
vm:
8282
os: freebsd
83-
run: pkg install -y node npm protobuf ruby rubygem-bundler rubygem-rake
83+
run: |
84+
pkg install -y node npm protobuf ruby rubygem-bundler rubygem-rake
85+
- os: ubuntu-latest
86+
vm:
87+
os: freebsd
88+
run: |
89+
pkg install -y node npm ruby rubygem-bundler rubygem-rake
90+
sysrc linux_enable="YES"
91+
service linux start
92+
- os: ubuntu-latest
93+
vm:
94+
os: freebsd
95+
run: |
96+
pkg install -y debootstrap node npm ruby rubygem-bundler rubygem-rake
97+
sysrc linux_enable="YES"
98+
service linux start
99+
debootstrap jammy /compat/ubuntu
100+
ln -sf ../lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 /compat/ubuntu/lib64/ld-linux-x86-64.so.2
101+
sysctl compat.linux.emul_path=/compat/ubuntu
102+
- os: ubuntu-latest
103+
vm:
104+
os: freebsd
105+
run: |
106+
pkg install -y debootstrap ruby rubygem-bundler rubygem-rake
107+
sysrc linux_enable="YES"
108+
service linux start
109+
debootstrap jammy /compat/ubuntu
110+
ln -sf ../lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 /compat/ubuntu/lib64/ld-linux-x86-64.so.2
111+
sysctl compat.linux.emul_path=/compat/ubuntu
112+
mount -t linprocfs linproc /compat/ubuntu/proc
84113
- os: ubuntu-latest
85114
vm:
86115
os: openbsd
@@ -90,11 +119,13 @@ jobs:
90119
- os: ubuntu-latest
91120
vm:
92121
os: netbsd
93-
run: /usr/sbin/pkg_add nodejs protobuf ruby
122+
run: |
123+
/usr/sbin/pkg_add nodejs protobuf ruby
94124
- os: ubuntu-latest
95125
vm:
96126
os: dragonflybsd
97-
run: pkg install -y libnghttp2 libuv node npm protobuf ruby rubygem-bundler rubygem-rake
127+
run: |
128+
pkg install -y libnghttp2 libuv node npm protobuf ruby rubygem-bundler rubygem-rake
98129
- os: ubuntu-latest
99130
vm:
100131
os: omnios
@@ -139,7 +170,7 @@ jobs:
139170
run: bundle exec rake compile
140171

141172
- name: Spec
142-
if: "!matrix.vm" # TODO: remove after https://github.com/sass/dart-sass/pull/2413
173+
if: "!matrix.vm || contains(matrix.vm.run, '/proc')" # TODO: remove after https://github.com/sass/dart-sass/pull/2413
143174
run: bundle exec rake spec
144175

145176
- name: Install

ext/sass/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010
/pnpm-lock.yaml
1111
/protoc.exe
1212
/ruby/
13+
/true
1314
/yarn.lock

0 commit comments

Comments
 (0)