Skip to content

Commit ee8eca2

Browse files
authored
lite
1 parent 2829be9 commit ee8eca2

File tree

1 file changed

+1
-170
lines changed

1 file changed

+1
-170
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 170 deletions
Original file line numberDiff line numberDiff line change
@@ -151,72 +151,7 @@ jobs:
151151
make go-install
152152
if: steps.metadata.outputs.module == 'go'
153153

154-
##
155-
## Java
156-
##
157-
158-
- uses: actions/setup-java@v4
159-
with:
160-
distribution: temurin
161-
java-version: '${{ steps.metadata.outputs.version }}'
162-
if: steps.metadata.outputs.module == 'java'
163-
164-
- name: Configure java
165-
run: |
166-
sudo --preserve-env=JAVA_HOME ./configure java
167-
if: steps.metadata.outputs.module == 'java'
168-
169-
- name: Make java
170-
run: |
171-
sudo make java
172-
if: steps.metadata.outputs.module == 'java'
173-
174-
##
175-
## Node
176-
##
177-
178-
- uses: actions/setup-node@v4
179-
with:
180-
node-version: '${{ steps.metadata.outputs.version }}'
181-
if: steps.metadata.outputs.module == 'node'
182-
183-
- name: Install node-gyp
184-
run: |
185-
npm install -g node-gyp
186-
if: steps.metadata.outputs.module == 'node'
187-
188-
- name: Configure node
189-
run: |
190-
./configure nodejs
191-
if: steps.metadata.outputs.module == 'node'
192-
193-
- name: Make node
194-
run: |
195-
make node-local-install DESTDIR=node
196-
if: steps.metadata.outputs.module == 'node'
197-
198-
##
199-
## Perl
200-
##
201-
202-
# Uses default Actions VM Perl
203-
# https://github.com/actions/runner-images#available-images
204-
205-
- name: Install libperl-dev
206-
run: |
207-
sudo apt-get install libperl-dev
208-
if: steps.metadata.outputs.module == 'perl'
209-
210-
- name: Configure perl
211-
run: |
212-
./configure perl
213-
if: steps.metadata.outputs.module == 'perl'
214-
215-
- name: Make perl
216-
run: |
217-
make perl
218-
if: steps.metadata.outputs.module == 'perl'
219-
154+
220155
##
221156
## PHP
222157
##
@@ -239,90 +174,6 @@ jobs:
239174
make php
240175
if: steps.metadata.outputs.module == 'php'
241176

242-
##
243-
## Python 3
244-
##
245-
246-
- uses: actions/setup-python@v5
247-
with:
248-
python-version: '${{ steps.metadata.outputs.version }}'
249-
if: steps.metadata.outputs.module == 'python'
250-
251-
- name: Configure python3
252-
run: |
253-
sudo ./configure python --config=python3-config
254-
if: steps.metadata.outputs.module == 'python'
255-
256-
- name: Make python3
257-
run: |
258-
sudo make python3
259-
if: steps.metadata.outputs.module == 'python'
260-
261-
##
262-
## Ruby
263-
##
264-
265-
- uses: ruby/setup-ruby@v1
266-
with:
267-
ruby-version: '${{ steps.metadata.outputs.version }}'
268-
if: steps.metadata.outputs.module == 'ruby'
269-
270-
- name: Install rack
271-
run: |
272-
gem install rack
273-
if: steps.metadata.outputs.module == 'ruby'
274-
275-
- name: Configure ruby
276-
run: |
277-
./configure ruby
278-
if: steps.metadata.outputs.module == 'ruby'
279-
280-
- name: Make ruby
281-
run: |
282-
make ruby
283-
if: steps.metadata.outputs.module == 'ruby'
284-
285-
##
286-
## Wasm
287-
##
288-
289-
- name: Make wasmtime
290-
run: |
291-
make -C pkg/contrib .wasmtime
292-
if: steps.metadata.outputs.module == 'wasm'
293-
294-
- name: Configure wasm
295-
run: |
296-
./configure wasm --include-path=pkg/contrib/wasmtime/artifacts/include --lib-path=pkg/contrib/wasmtime/artifacts/lib
297-
if: steps.metadata.outputs.module == 'wasm'
298-
299-
- name: Make wasm
300-
run: |
301-
make wasm
302-
if: steps.metadata.outputs.module == 'wasm'
303-
304-
##
305-
## wasm-wasi-component
306-
##
307-
308-
- name: Setup rust
309-
run: |
310-
curl https://sh.rustup.rs | sh -s -- -y
311-
cargo install cargo-component
312-
if: steps.metadata.outputs.module == 'wasm-wasi-component'
313-
314-
- name: Configure wasm-wasi-component
315-
run: |
316-
./configure wasm-wasi-component
317-
if: steps.metadata.outputs.module == 'wasm-wasi-component'
318-
319-
- name: Make wasm-wasi-component
320-
run: |
321-
CLANG_PATH=/usr/bin/clang-15 \
322-
BINDGEN_EXTRA_CLANG_ARGS="-I../../njs/src -I../../njs/build" \
323-
make wasm-wasi-component
324-
if: steps.metadata.outputs.module == 'wasm-wasi-component'
325-
326177
##
327178
## Tests
328179
##
@@ -334,23 +185,3 @@ jobs:
334185
sudo chmod -R +x "$GITHUB_WORKSPACE"
335186
namei -l "$GITHUB_WORKSPACE"
336187
337-
# Install python3 if not present
338-
- uses: actions/setup-python@v5
339-
with:
340-
python-version: '3'
341-
if: steps.metadata.outputs.module != 'wasm'
342-
343-
- name: Install pytest
344-
run: |
345-
sudo apt install -y python3-pytest
346-
347-
if: steps.metadata.outputs.module != 'wasm'
348-
349-
- name: Run ${{ steps.metadata.outputs.module }} tests
350-
run: |
351-
if [ "${{ matrix.build }}" == "wasm-wasi-component" ]; then
352-
pytest-3 --print-log ${{ steps.metadata.outputs.testpath }}
353-
else
354-
sudo -E pytest-3 --print-log ${{ steps.metadata.outputs.testpath }}
355-
fi
356-
if: steps.metadata.outputs.module != 'wasm'

0 commit comments

Comments
 (0)