Skip to content

Commit e1cc3a0

Browse files
step to install gcc11
1 parent 8f3743e commit e1cc3a0

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/build.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ jobs:
3434
uses: dtolnay/rust-toolchain@stable
3535
with:
3636
targets: ${{ matrix.target }}
37+
- name: Install GCC 11 on Linux
38+
if: runner.os == 'Linux'
39+
run: |
40+
sudo apt-get update
41+
sudo apt-get install -y gcc-11 g++-11
42+
- name: Set CC and CXX to gcc-11
43+
if: runner.os == 'Linux'
44+
run: |
45+
echo "CC=gcc-11" >> $GITHUB_ENV
46+
echo "CXX=g++-11" >> $GITHUB_ENV
3747
- name: Cache dependencies
3848
uses: actions/cache@v4
3949
with:
@@ -91,6 +101,16 @@ jobs:
91101
libssl-dev:arm64 \
92102
pkg-config-aarch64-linux-gnu
93103
fi
104+
- name: Install GCC 11 on Linux
105+
if: runner.os == 'Linux'
106+
run: |
107+
sudo apt-get update
108+
sudo apt-get install -y gcc-11 g++-11
109+
- name: Set CC and CXX to gcc-11
110+
if: runner.os == 'Linux'
111+
run: |
112+
echo "CC=gcc-11" >> $GITHUB_ENV
113+
echo "CXX=g++-11" >> $GITHUB_ENV
94114
# macOS-specific dependencies
95115
- name: Install macOS dependencies
96116
if: runner.os == 'macOS'

0 commit comments

Comments
 (0)