diff --git a/.github/workflows/ci-unix-static-av2.yml b/.github/workflows/ci-unix-static-av2.yml index 62468583cf..f0c7591614 100644 --- a/.github/workflows/ci-unix-static-av2.yml +++ b/.github/workflows/ci-unix-static-av2.yml @@ -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++ diff --git a/.github/workflows/ci-unix-static.yml b/.github/workflows/ci-unix-static.yml index c0fd09a026..eaa33f142a 100644 --- a/.github/workflows/ci-unix-static.yml +++ b/.github/workflows/ci-unix-static.yml @@ -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++