Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
MaryaSharf committed Jan 9, 2024
1 parent 0d3dbbf commit 97e6ce4
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .github/actions/do_build_ock/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ runs:
- name: build_ock
shell: bash
run:
ninja -C ${{ inputs.build_dir }} ${{ inputs.build_targets }} install
ninja -C ${{ inputs.build_dir }} ${{ inputs.build_targets }}
73 changes: 40 additions & 33 deletions .github/workflows/create_publish_artifacts.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Build and Package
on:
pull_request:
paths:
- '.github/workflows/create_publish_artifacts.yml'
push:
branches:
- stable
Expand Down Expand Up @@ -27,7 +30,7 @@ jobs:
uses: ./.github/actions/setup_ubuntu_build
with:
llvm_version: 17
llvm_build_type: RelAssert
llvm_build_type: Release

- name: Setup python
uses: actions/setup-python@v4
Expand All @@ -39,6 +42,10 @@ jobs:
with:
build_type: Release

- name: Create OCK install
run: |
ninja -C $(pwd)/build install
- name: Download Daily Release
run: |
ls build
Expand All @@ -60,35 +67,35 @@ jobs:
$(pwd)/linux_nightly_release/bin/clang++ -fsycl $(pwd)/oneAPI-samples/DirectProgramming/C++SYCL/DenseLinearAlgebra/vector-add/src/vector-add-buffers.cpp -o vect
CA_HAL_DEBUG=1 OCL_ICD_FILENAMES=$(pwd)/build/lib/libCL.so ONEAPI_DEVICE_SELECTOR=opencl:acc SYCL_CONFIG_FILE_NAME="" ./vect
- name: Package Artifacts
run: |
tar -czf ock_build.tar.gz $(pwd)/build
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: riscv-build
path: ock_build.tar.gz

- 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: Create OCK pre-release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
files:
ock_build.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 }}
# - name: Package Artifacts
# run: |
# tar -czf ock_build.tar.gz $(pwd)/build

# - name: Upload Artifacts
# uses: actions/upload-artifact@v2
# with:
# name: riscv-build
# path: ock_build.tar.gz

# - 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: Create OCK pre-release
# uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
# env:
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# with:
# files:
# ock_build.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 }}

0 comments on commit 97e6ce4

Please sign in to comment.