diff --git a/.github/actions/do_build_ock/action.yml b/.github/actions/do_build_ock/action.yml index 215c3b769..d67c43d1a 100644 --- a/.github/actions/do_build_ock/action.yml +++ b/.github/actions/do_build_ock/action.yml @@ -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 }} diff --git a/.github/workflows/create_publish_artifacts.yml b/.github/workflows/create_publish_artifacts.yml index 8828b2df8..40ee5bed6 100644 --- a/.github/workflows/create_publish_artifacts.yml +++ b/.github/workflows/create_publish_artifacts.yml @@ -1,5 +1,8 @@ name: Build and Package on: + pull_request: + paths: + - '.github/workflows/create_publish_artifacts.yml' push: branches: - stable @@ -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 @@ -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 @@ -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 }} \ No newline at end of file + # - 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 }} \ No newline at end of file