Skip to content

Commit

Permalink
[Kernel CI] Use Fuchsia Clang
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarwinux committed Nov 8, 2024
1 parent 37eb8d1 commit 7847d97
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-lts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ jobs:
- name: Install dependencies
id: dep
run: |
pacman -Syu --noconfirm pahole xmlto inetutils bc cpio jq llvm llvm-libs clang lld ccache
pacman -Syu --noconfirm pahole xmlto inetutils bc cpio jq ccache go
GOBIN=/usr/bin go install go.chromium.org/luci/cipd/client/cmd/...@latest
cipd install fuchsia/third_party/clang/linux-amd64 latest -root /usr/local/fuchsia-clang
echo "PATH=/usr/local/fuchsia-clang/bin:$PATH" >> $GITHUB_ENV
- name: Trust this directory
run: git config --global --add safe.directory '*' # v2.35.3 or later
Expand All @@ -58,7 +61,7 @@ jobs:
scripts/config -e ${{ matrix.arch }}
# Load version info into env
echo "CLANG_VERSION=$(pacman -Qs clang | grep local/clang | sed "s#.*local/clang \(.*\)#\1#")" | tee -a $GITHUB_ENV
echo "CLANG_VERSION=$(clang -dumpversion)" | tee -a $GITHUB_ENV
export CURRENT_VERSION=$(make kernelrelease)
# must query with a token, or will fail with api rate limit on public runners
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ jobs:
- name: Install dependencies
id: dep
run: |
pacman -Syu --noconfirm pahole xmlto inetutils bc cpio jq llvm llvm-libs clang lld ccache
pacman -Syu --noconfirm pahole xmlto inetutils bc cpio jq ccache go
GOBIN=/usr/bin go install go.chromium.org/luci/cipd/client/cmd/...@latest
cipd install fuchsia/third_party/clang/linux-amd64 latest -root /usr/local/fuchsia-clang
echo "PATH=/usr/local/fuchsia-clang/bin:$PATH" >> $GITHUB_ENV
- name: Trust this directory
run: git config --global --add safe.directory '*' # v2.35.3 or later
Expand All @@ -64,7 +67,7 @@ jobs:
scripts/config -e ${{ matrix.arch }}
# Load version info into env
echo "CLANG_VERSION=$(pacman -Qs clang | grep local/clang | sed "s#.*local/clang \(.*\)#\1#")" | tee -a $GITHUB_ENV
echo "CLANG_VERSION=$(clang -dumpversion)" | tee -a $GITHUB_ENV
export CURRENT_VERSION=$(make kernelrelease)
# must query with a token, or will fail with api rate limit on public runners
Expand Down

0 comments on commit 7847d97

Please sign in to comment.