workflows/build: explicitly define `CXX` in the env

This commit is contained in:
llyyr 2023-09-26 17:42:31 +05:30 committed by Niklas Haas
parent 3ad384a768
commit b4da71af2b
1 changed files with 14 additions and 4 deletions

View File

@ -82,6 +82,8 @@ jobs:
matrix: matrix:
cc: cc:
- "clang" - "clang"
cxx:
- "clang++"
os: os:
- "macos-12" - "macos-12"
- "macos-13" - "macos-13"
@ -104,6 +106,7 @@ jobs:
./ci/build-macos.sh ./ci/build-macos.sh
env: env:
CC: "${{ matrix.cc }}" CC: "${{ matrix.cc }}"
CXX: "${{ matrix.cxx }}"
TRAVIS_OS_NAME: "${{ matrix.os }}" TRAVIS_OS_NAME: "${{ matrix.os }}"
- name: Print meson log - name: Print meson log
@ -126,12 +129,19 @@ jobs:
container: container:
image: "registry.opensuse.org/home/mia/images/images/mpv-ci:stable-deps" image: "registry.opensuse.org/home/mia/images/images/mpv-ci:stable-deps"
env: env:
CC: "${{ matrix.cc }}" CC: "${{ matrix.config.cc }}"
CXX: "${{ matrix.config.cxx }}"
strategy: strategy:
matrix: matrix:
cc: config:
- "gcc" - {
- "clang" cc: "gcc",
cxx: "g++",
}
- {
cc: "clang",
cxx: "clang++",
}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3