Skip to content

Commit

Permalink
Set CC on macOS (#2562)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrabaud authored Jan 7, 2025
1 parent 824795d commit 502f67a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci-unix-static-av2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,14 @@ jobs:
- name: Run AVIF Tests
working-directory: ./build
run: ctest -j $(getconf _NPROCESSORS_ONLN) --output-on-failure
- name: Set CC on macOS
if: ${{ runner.os == 'macOS' }}
run:
echo "CC=cc" >> $GITHUB_ENV
shell: bash
- name: Check static link bundling
run: |
$CC -o avifenc -I./apps/shared -I./third_party/iccjpeg -I./include apps/avifenc.c \
${{ env.CC }} -o avifenc -I./apps/shared -I./third_party/iccjpeg -I./include apps/avifenc.c \
apps/shared/*.c third_party/iccjpeg/iccjpeg.c build/libavif.a \
-lpng -ljpeg -lz -lm -ldl -lstdc++
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/ci-unix-static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,15 @@ jobs:
- name: Run AVIF Tests
working-directory: ./build
run: ctest -j $(getconf _NPROCESSORS_ONLN) --output-on-failure

- name: Set CC on macOS
if: ${{ runner.os == 'macOS' }}
run:
echo "CC=cc" >> $GITHUB_ENV
shell: bash
- name: Check static link bundling
run: |
$CC -o avifenc -I./apps/shared -I./third_party/iccjpeg -I./include apps/avifenc.c \
${{ env.CC }} -o avifenc -I./apps/shared -I./third_party/iccjpeg -I./include apps/avifenc.c \
apps/shared/*.c third_party/iccjpeg/iccjpeg.c build/libavif.a \
-lpng -ljpeg -lz -lm -ldl -lstdc++
Expand Down

0 comments on commit 502f67a

Please sign in to comment.