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'
- name: Build all
env:
CC: clang
run: |
make all
- uses: actions/upload-artifact@v3

View file

@ -12,10 +12,9 @@ all:
@cp target/release/ratelimit build/bin
@cp target/release/rest build/bin
@cp target/release/webhook build/bin
gcc -v
# 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-compose build

View file

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