Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 5 additions & 24 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,12 @@ jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
go-version: [ '1.21.x' ]

steps:
- uses: actions/checkout@v3
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}

- name: Display Go version
run: go version

- name: Install dependencies
run: go get .

- name: Build
run: go build -v ./...
env:
CC: clang
CXX: clang++
fetch-depth: 2

- uses: cachix/install-nix-action@v17

- name: Test with the Go CLI
run: go test
env:
CC: clang
CXX: clang++
- name: Build binary
run: nix build --log-lines 1000000
14 changes: 11 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,20 @@
src = ./.;
CGO_ENABLED = 1;
preBuild = ''
export CC=clang
export CXX="clang++";
export CC=${pkgs.clang_14}/bin/clang
export CXX=${pkgs.clang_14}/bin/clang++
'';
vendorSha256 =
"sha256-sjg+D0IIErl21HZjXBNKBTqXBZfy6w6EhHYS0seUE3k=";
nativeBuildInputs = with pkgs; [ clang_16 ];
LD_LIBRARY_PATH = (pkgs.lib.strings.makeLibraryPath [
pkgs.stdenv.cc.cc.lib
pkgs.llvmPackages_14.libclang.lib
]);
buildInputs = [
pkgs.clang_14
pkgs.llvmPackages_14.llvm
pkgs.llvmPackages_14.libclang
];
};
default = bqt;
});
Expand Down