From c599e7cee33f177d7505e553cf948055930a55c0 Mon Sep 17 00:00:00 2001 From: MatthieuCoder Date: Mon, 16 Jan 2023 02:03:18 +0400 Subject: [PATCH] migrate to clang --- .github/workflows/build.yml | 2 ++ Makefile | 3 +-- shell.nix | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3e1c1ea..a2bb06e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -127,6 +127,8 @@ jobs: go-version: '1.18.4' - name: Build all + env: + CC: clang run: | make all - uses: actions/upload-artifact@v3 diff --git a/Makefile b/Makefile index 47e7421..756e26e 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/shell.nix b/shell.nix index 31f7ee0..927c1b1 100644 --- a/shell.nix +++ b/shell.nix @@ -11,6 +11,7 @@ mkShell { buildInputs = [ cargo gcc + clang go gnumake protobuf -- 2.39.5