Skip to content

Create tag for release #6

Create tag for release

Create tag for release #6

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: 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 Tag
run: |
TAG_NAME=$(date +'%Y.%m.%d')
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git tag $TAG_NAME
git push origin $TAG_NAME
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${TAG_NAME}
files: |
${LIBCUFFT_PATH}
${LIBCUFFT_PATH}
./build/amumax