Skip to content

Commit

Permalink
Skip test and strip for musl builds
Browse files Browse the repository at this point in the history
  • Loading branch information
perkfly committed Mar 5, 2024
1 parent 1ef8b7e commit 3f8028e
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/build-and-test-make.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ env:

jobs:
build-and-test-linux:
name: (Linux ${{ matrix.arch }}) Build curl-impersonate and run the tests
name: (${{ matrix.host }}) Build curl-impersonate and run the tests
runs-on: ubuntu-latest
env:
CC: ${{ github.workspace }}/zigshim/cc
Expand Down Expand Up @@ -130,25 +130,25 @@ jobs:
make chrome-install
- name: Prepare the tests
if: matrix.arch == 'x86_64'
if: matrix.host == 'x86_64-linux-gnu'
run: |
# Compile 'minicurl' which is used by the tests
gcc -Wall -Werror -o ${{ runner.temp }}/install/bin/minicurl tests/minicurl.c `curl-config --libs`
- uses: actions/setup-python@v4
if: matrix.arch == 'x86_64'
if: matrix.host == 'x86_64-linux-gnu'
with:
python-version: '3.10'

- name: Install dependencies for the tests script
if: matrix.arch == 'x86_64'
if: matrix.host == 'x86_64-linux-gnu'
run: |
pip3 install -r tests/requirements.txt
# For now we can only run the tests when native
# tests run the curl-impersonate binary locally.
- name: Run the tests
if: matrix.arch == 'x86_64'
if: matrix.host == 'x86_64-linux-gnu'
run: |
cd tests
# sudo is needed for capturing packets
Expand Down Expand Up @@ -201,7 +201,11 @@ jobs:
set -e
make chrome-build
make chrome-checkbuild
make chrome-install-strip
if [[ "${{ endsWith(matrix.host, 'musl') }}" == "true" ]]; then
make chrome-install
else
make chrome-install-strip
fi
- name: Create tar release files for curl-impersonate
run: |
Expand Down

0 comments on commit 3f8028e

Please sign in to comment.