Skip to content

Commit dd7f7d5

Browse files
committed
Use clang on Linux
1 parent c0eb503 commit dd7f7d5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,12 @@ jobs:
215215
echo "::set-output name=id::$(cat container_id)"
216216
- name: Install Alpine system dependencies
217217
if: ${{ matrix.libc == 'musl' }}
218-
run: docker exec -w "${PWD}" ${{ steps.container.outputs.id }} apk add --no-cache build-base linux-headers bash python3 git curl tar cmake
218+
run: docker exec -w "${PWD}" ${{ steps.container.outputs.id }} apk add --no-cache build-base linux-headers bash python3 git curl tar cmake clang
219219
- name: Install Debian system dependencies
220220
if: ${{ matrix.libc == 'gnu' }}
221221
run: |
222222
docker exec -w "${PWD}" ${{ steps.container.outputs.id }} apt-get update
223-
docker exec -w "${PWD}" ${{ steps.container.outputs.id }} apt-get install -y cmake
223+
docker exec -w "${PWD}" ${{ steps.container.outputs.id }} apt-get install -y cmake clang
224224
- name: Install Debian cross-compiler
225225
if: ${{ matrix.libc == 'gnu' && matrix.platform != 'amd64' }}
226226
run: |

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
ARG RUBY_VERSION=2.7
22
FROM ruby:${RUBY_VERSION}
33

4-
RUN test ! -f /etc/alpine-release || apk add --no-cache build-base bash python3 git curl tar ccache
5-
RUN test -f /etc/alpine-release || (apt-get update && apt-get install -y ccache)
4+
RUN test ! -f /etc/alpine-release || apk add --no-cache build-base bash python3 git curl tar ccache clang
5+
RUN test -f /etc/alpine-release || (apt-get update && apt-get install -y ccache clang)
66
ENV CCACHE_DIR=/ccache
77

88
RUN gem update --system 3.3.26 && gem install bundler -v '~> 2.3.26'

0 commit comments

Comments
 (0)