Skip to content

Commit

Permalink
hm?
Browse files Browse the repository at this point in the history
  • Loading branch information
DustTheory committed Sep 6, 2024
1 parent 21a9e17 commit 9090b19
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 29 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ jobs:
with:
go-version: '1.23'

- name: Install LLVM
run: |
echo 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-18 main' | sudo tee /etc/apt/sources.list.d/llvm.list
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install --no-install-recommends llvm-18-dev
- name: Build
run: go build -v ./...

Expand Down
39 changes: 10 additions & 29 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,40 +16,21 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4

- uses: actions/setup-go@v5
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
go-version: '1.22'

- name: Install dependencies
- name: Install LLVM
run: |
echo 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-18 main' | sudo tee /etc/apt/sources.list.d/llvm.list
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install -y libtinfo5
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v2
with:
version: "18.1.8"

- name: Set up Clang as C and C++ compiler
run: |
echo "CC=clang" >> $GITHUB_ENV
echo "CXX=clang++" >> $GITHUB_ENV
- name: Install Go dependencies
run: |
go mod download
go mod tidy
- name: Verify dependencies
run: |
go list -m all
- name: Build project
run: |
go build ./...
sudo apt-get install --no-install-recommends llvm-18-dev
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
Expand Down

0 comments on commit 9090b19

Please sign in to comment.