Skip to content

Commit

Permalink
Prefer sudo only where required
Browse files Browse the repository at this point in the history
  • Loading branch information
arbourd committed Mar 5, 2024
1 parent 1bb686c commit 8068378
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ jobs:

- name: Make njs
run: |
sudo ./configure --no-libxml2 --no-zlib
sudo make -j4 -k
./configure --no-libxml2 --no-zlib
make -j4 -k
working-directory: njs

##
Expand All @@ -110,7 +110,7 @@ jobs:

- name: Configure unit
run: |
sudo ./configure \
./configure \
--tests \
--openssl \
--njs \
Expand All @@ -119,7 +119,7 @@ jobs:
- name: Make unit
run: |
sudo make -j4 -k || sudo make
make -j4 -k || make
##
## Go
Expand All @@ -133,13 +133,13 @@ jobs:

- name: Configure go
run: |
sudo ./configure go --go-path=
./configure go --go-path=
if: steps.metadata.outputs.module == 'go'

- name: Make go
run: |
sudo make go
sudo make go-install
make go
make go-install
if: steps.metadata.outputs.module == 'go'

##
Expand All @@ -154,7 +154,7 @@ jobs:

- name: Configure java
run: |
sudo sudo ./configure java
sudo ./configure java
if: steps.metadata.outputs.module == 'java'

- name: Make java
Expand All @@ -173,17 +173,17 @@ jobs:

- name: Install node-gyp
run: |
sudo npm install -g node-gyp
npm install -g node-gyp
if: steps.metadata.outputs.module == 'node'

- name: Configure node
run: |
sudo ./configure nodejs
./configure nodejs
if: steps.metadata.outputs.module == 'node'

- name: Make node
run: |
sudo make node-local-install DESTDIR=node
make node-local-install DESTDIR=node
if: steps.metadata.outputs.module == 'node'

##
Expand All @@ -200,12 +200,12 @@ jobs:

- name: Configure perl
run: |
sudo ./configure perl
./configure perl
if: steps.metadata.outputs.module == 'perl'

- name: Make perl
run: |
sudo make perl
make perl
if: steps.metadata.outputs.module == 'perl'

##
Expand All @@ -222,12 +222,12 @@ jobs:

- name: Configure php
run: |
sudo ./configure php
./configure php
if: steps.metadata.outputs.module == 'php'

- name: Make php
run: |
sudo make php
make php
if: steps.metadata.outputs.module == 'php'

##
Expand Down Expand Up @@ -260,17 +260,17 @@ jobs:

- name: Install rack
run: |
sudo gem install rack
gem install rack
if: steps.metadata.outputs.module == 'ruby'

- name: Configure ruby
run: |
sudo ./configure ruby
./configure ruby
if: steps.metadata.outputs.module == 'ruby'

- name: Make ruby
run: |
sudo make ruby
make ruby
if: steps.metadata.outputs.module == 'ruby'

##
Expand All @@ -284,12 +284,12 @@ jobs:

- name: Configure wasm
run: |
sudo ./configure wasm --include-path=pkg/contrib/wasmtime/crates/c-api/include --lib-path=pkg/contrib/wasmtime/target/release
./configure wasm --include-path=pkg/contrib/wasmtime/crates/c-api/include --lib-path=pkg/contrib/wasmtime/target/release
if: steps.metadata.outputs.module == 'wasm'

- name: Make wasm
run: |
sudo make wasm
make wasm
if: steps.metadata.outputs.module == 'wasm'

##
Expand Down

0 comments on commit 8068378

Please sign in to comment.