Skip to content

Commit

Permalink
Fix version in gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuMoalic committed Oct 24, 2023
1 parent 42de4f5 commit 15c1f7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ jobs:
method: 'network'

- name: Build Binary
run: go build -v -o ./build/amumax
run: go build -v -o ./build/amumax -ldflags "-X github.com/MathieuMoalic/amumax/engine.VERSION=${VERSION}"
env:
VERSION: ${date +'%Y.%m.%d'}
NVCC_CCBIN: /usr/bin/gcc
CGO_CFLAGS: "-I${LD_LIBRARY_PATH}"
CGO_LDFLAGS: "-lcufft -lcurand -lcuda -L${LD_LIBRARY_PATH} -Wl,-rpath -Wl,$ORIGIN/$RPATH -X github.com/MathieuMoalic/amumax/engine.VERSION=${VERSION}"
CGO_LDFLAGS: "-lcufft -lcurand -lcuda -L${LD_LIBRARY_PATH} -Wl,-rpath -Wl,$ORIGIN/$RPATH"
CGO_CFLAGS_ALLOW: '(-fno-schedule-insns|-malign-double|-ffast-math)'
NVCCFLAGS: "-std=c++03 -ccbin=$NVCC_CCBIN --compiler-options -Werror --compiler-options -Wall -Xptxas -O3 -ptx"

Expand Down

0 comments on commit 15c1f7c

Please sign in to comment.