Skip to content

Commit e133d4e

Browse files
committed
don't use a docker container for runner's native platform
1 parent ec8fbb5 commit e133d4e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/node-js-packaging.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -275,16 +275,15 @@ jobs:
275275
- run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
276276
if: ${{ contains(matrix.target, 'armv7') }}
277277
- name: Test bindings
278+
if: matrix.target != 'x86_64-unknown-linux-gnu'
278279
uses: addnab/docker-run-action@v3
279280
with:
280281
image: ${{ steps.docker.outputs.IMAGE }}
281282
options: '-v ${{ github.workspace }}:${{ github.workspace }} -w ${{ github.workspace }} --platform ${{ steps.docker.outputs.PLATFORM }}'
282-
run: |
283-
node -e "
284-
console.log('process.arch:', process.arch);
285-
console.log('process.platform:', process.platform);
286-
"
287-
yarn test
283+
run: yarn test
284+
- name: Test x86_64-unknown-linux-gnu
285+
if: matrix.target == 'x86_64-unknown-linux-gnu'
286+
run: yarn test
288287
publish:
289288
name: Publish
290289
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)