Skip to content

Commit

Permalink
Set pkgconfig path differently
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Jan 27, 2024
1 parent 7fefbcd commit 9b9884e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@ jobs:
shell: bash
run: |
set -ex
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$PWD/vcpkg/installed/x64-windows/lib/pkgconfig:$PWD/vcpkg/installed/x86-windows/lib/pkgconfig
pkgconfig=$PKG_CONFIG_PATH:$PWD/vcpkg/installed/x64-windows/lib/pkgconfig:$PWD/vcpkg/installed/x86-windows/lib/pkgconfig
platform=${{ runner.os }}
platform=${platform,,}
mkdir -p $PWD/bin/dist
GOBIN=$PWD/bin go install -v ./cmd/utilities/compile_assets
$PWD/bin/compile_assets
pth="$platform-${{ matrix.arch }}"
mkdir -p $PWD/bin/$pth
GOOS=$platform GOARCH=${{ matrix.arch }} GOBIN=$PWD/bin go build -o $PWD/bin/$pth -a -ldflags "-X github.com/t2bot/matrix-media-repo/common/version.Version=$(git describe --tags)" -v ./cmd/...
GOOS=$platform GOARCH=${{ matrix.arch }} GOBIN=$PWD/bin go build -pgo=pgo_media_repo.pprof -o $PWD/bin/$pth -a -ldflags "-X github.com/t2bot/matrix-media-repo/common/version.Version=$(git describe --tags)" -v ./cmd/workers/media_repo
PKG_CONFIG_PATH=$pkgconfig GOOS=$platform GOARCH=${{ matrix.arch }} GOBIN=$PWD/bin go build -o $PWD/bin/$pth -a -ldflags "-X github.com/t2bot/matrix-media-repo/common/version.Version=$(git describe --tags)" -v ./cmd/...
PKG_CONFIG_PATH=$pkgconfig GOOS=$platform GOARCH=${{ matrix.arch }} GOBIN=$PWD/bin go build -pgo=pgo_media_repo.pprof -o $PWD/bin/$pth -a -ldflags "-X github.com/t2bot/matrix-media-repo/common/version.Version=$(git describe --tags)" -v ./cmd/workers/media_repo
cd $PWD/bin/$pth
arch=${{ matrix.arch }}
if [ "$arch" == "amd64" ]; then
Expand Down

0 comments on commit 9b9884e

Please sign in to comment.