Skip to content

Fix gh action

Fix gh action #5

Workflow file for this run

name: Build Release
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: "1.21"
- name: Setup CUDA
uses: Jimver/[email protected]
id: cuda-toolkit
with:
cuda: "12.1.0"
- name: Build Binary
run: go build -v -o ./build/amumax
- name: Prepare Release
run: |
RELEASE_NAME=$(date +'%Y.%m.%d')
echo "RELEASE_NAME=${RELEASE_NAME}" >> $GITHUB_ENV
- name: Get cuda libs
run: |
LIBCUFFT_PATH=$( ldd ./build/amumax | grep libcufft | awk '{print $3}' )
LIBCURAND_PATH=$( ldd ./build/amumax | grep libcurand | awk '{print $3}' )
echo "LIBCUFFT_PATH=${LIBCUFFT_PATH}" >> $GITHUB_ENV
echo "LIBCURAND_PATH=${LIBCURAND_PATH}" >> $GITHUB_ENV
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: |
${LIBCUFFT_PATH}
${LIBCUFFT_PATH}
./build/amumax