Skip to content

Create a basic nightly OCK build and test vector-add using oneAPI. #2

Create a basic nightly OCK build and test vector-add using oneAPI.

Create a basic nightly OCK build and test vector-add using oneAPI. #2

Workflow file for this run

name: OCK Nightly
on:
pull_request:
paths:
- '.github/workflows/create_release.yml'
jobs:
ock_nightly:
name: OCK Nightly Build Upload
runs-on: ubuntu-22.04
steps:
- uses: actions/download-artifact@v3
with:
name: riscv-build
- name: Compute tag
id: tag
run: |
if [ "${{ github.event_name == 'schedule' }}" == "true" ]; then
echo "TAG=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
else
# TODO: Use date of the commit?
echo "TAG=$(date +'%Y-%m-%d')-${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT"
fi
- name: Upload binaries
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
with:
files:
ock_install.tar.gz
tag_name: nightly-${{ steps.tag.outputs.TAG }}
name: OCK daily ${{ steps.tag.outputs.TAG }}
prerelease: true
body: "Daily build ${{ steps.tag.outputs.TAG }}"
target_commitish: ${{ github.sha }}