migrate to clang

This commit is contained in:
MatthieuCoder 2023-01-16 02:03:18 +04:00
parent b029c53626
commit c599e7cee3
3 changed files with 4 additions and 2 deletions

View file

@ -127,6 +127,8 @@ jobs:
go-version: '1.18.4' go-version: '1.18.4'
- name: Build all - name: Build all
env:
CC: clang
run: | run: |
make all make all
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3

View file

@ -12,10 +12,9 @@ all:
@cp target/release/ratelimit build/bin @cp target/release/ratelimit build/bin
@cp target/release/rest build/bin @cp target/release/rest build/bin
@cp target/release/webhook build/bin @cp target/release/webhook build/bin
gcc -v
# Builds go # Builds go
go build -a -x -ldflags '-s' -o build/bin/nova cmd/nova/nova.go go build -a -ldflags '-s' -o build/bin/nova cmd/nova/nova.go
docker-images: docker-images:
docker-compose build docker-compose build

View file

@ -11,6 +11,7 @@ mkShell {
buildInputs = [ buildInputs = [
cargo cargo
gcc gcc
clang
go go
gnumake gnumake
protobuf protobuf