Skip to content

Commit 8c73acb

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

File tree

4 files changed

+307
-64
lines changed

4 files changed

+307
-64
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,26 @@ 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 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+
mount -t linprocfs linproc /compat/ubuntu/proc
102+
sysctl compat.linux.emul_path=/compat/ubuntu
84103
- os: ubuntu-latest
85104
vm:
86105
os: openbsd
@@ -90,11 +109,13 @@ jobs:
90109
- os: ubuntu-latest
91110
vm:
92111
os: netbsd
93-
run: /usr/sbin/pkg_add nodejs protobuf ruby
112+
run: |
113+
/usr/sbin/pkg_add nodejs protobuf ruby
94114
- os: ubuntu-latest
95115
vm:
96116
os: dragonflybsd
97-
run: pkg install -y libnghttp2 libuv node npm protobuf ruby rubygem-bundler rubygem-rake
117+
run: |
118+
pkg install -y libnghttp2 libuv node npm protobuf ruby rubygem-bundler rubygem-rake
98119
- os: ubuntu-latest
99120
vm:
100121
os: omnios
@@ -139,7 +160,7 @@ jobs:
139160
run: bundle exec rake compile
140161

141162
- name: Spec
142-
if: "!matrix.vm" # TODO: remove after https://github.com/sass/dart-sass/pull/2413
163+
if: "!matrix.vm || contains(matrix.vm.run, 'sysctl compat.linux.emul_path')" # TODO: remove after https://github.com/sass/dart-sass/pull/2413
143164
run: bundle exec rake spec
144165

145166
- 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-*-static
1314
/yarn.lock

0 commit comments

Comments
 (0)