Skip to content

Commit

Permalink
added env field test
Browse files Browse the repository at this point in the history
  • Loading branch information
Josee1031 committed Aug 8, 2024
1 parent 41aa3cf commit 8e748ff
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@ jobs:
run: |
sudo apt-get update
if [ "${{ matrix.compiler.name }}" == "gnu" ]; then
sudo apt-get install -y gcc-${{ matrix.compiler.version }} g++-${{ matrix.compiler.version }}
sudo apt-get install -y gcc-${{ matrix.compiler.version }}
export CC=gcc-${{ matrix.compiler.version }}
elif [ "${{ matrix.compiler.name }}" == "clang" ]; then
sudo apt-get install -y clang-${{ matrix.compiler.version }}
export CC=clang-${{ matrix.compiler.version }}
fi
- name: make check
run:
make check
- name: Build and test
run: make check
env:
CC: ${{ env.CC }}

0 comments on commit 8e748ff

Please sign in to comment.