File tree Expand file tree Collapse file tree 1 file changed +49
-2
lines changed Expand file tree Collapse file tree 1 file changed +49
-2
lines changed Original file line number Diff line number Diff line change 7070 - name : Install
7171 run : rake -f -r bundler/gem_tasks install
7272
73- spec-musl :
73+ spec-linux- musl :
7474
7575 name : spec (alpine-latest, ${{ matrix.ruby-version }})
7676
@@ -106,11 +106,58 @@ jobs:
106106 - name : Spec
107107 run : bundle exec rake spec
108108
109+ spec-freebsd :
110+
111+ name : spec (freebsd-latest)
112+
113+ runs-on : ubuntu-latest
114+
115+ steps :
116+ - name : Checkout
117+ uses : actions/checkout@v4
118+
119+ - name : Setup VM
120+ uses : vmactions/freebsd-vm@v1
121+
122+ - name : Setup Shell
123+ run : |
124+ _osname=freebsd
125+ tee /home/runner/.local/bin/$_osname <<EOF
126+ #!/usr/bin/env bash
127+ ssh $_osname "cd \$(printf %q "\$PWD") && exec \\\$SHELL -e"<\$1
128+ EOF
129+ chmod a+x /home/runner/.local/bin/$_osname
130+
131+ - name : Install dependencies
132+ run : pkg install -y node npm protobuf ruby rubygem-bundler rubygem-rake
133+ shell : freebsd {0}
134+
135+ - name : Bundle
136+ run : bundle install
137+ shell : freebsd {0}
138+
139+ - name : Compile
140+ run : EMBEDDED_SASS_PROTOCOL=https://github.com/sass/sass/raw/HEAD/spec/embedded_sass.proto PROTOC_BIN=`which protoc` bundle exec rake compile
141+ shell : freebsd {0}
142+
143+ - name : Install
144+ run : rake -f -r bundler/gem_tasks install
145+ shell : freebsd {0}
146+
147+ - name : Test
148+ run : bundle exec sass --version
149+ shell : freebsd {0}
150+
151+ # TODO: https://github.com/sass/dart-sass/pull/2413
152+ # - name: Spec
153+ # run: bundle exec rake spec
154+ # shell: freebsd {0}
155+
109156 release :
110157
111158 if : github.event.repository.fork == false && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
112159
113- needs : [lint, spec, spec-musl]
160+ needs : [lint, spec, spec-linux- musl, spec-freebsd ]
114161
115162 runs-on : ubuntu-latest
116163
You can’t perform that action at this time.
0 commit comments