Skip to content

Convert ci-shark-ai.yml to use pkgci_shark_ai.yml so that we only build packages once #7

Convert ci-shark-ai.yml to use pkgci_shark_ai.yml so that we only build packages once

Convert ci-shark-ai.yml to use pkgci_shark_ai.yml so that we only build packages once #7

Workflow file for this run

# Copyright 2024 Advanced Micro Devices, Inc.
#
# Licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
name: PkgCI
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
permissions:
contents: read
concurrency:
# A PR number if a pull request and otherwise the commit hash. This cancels
# queued and in-progress runs for the same PR (presubmit) or commit
# (postsubmit). The workflow name is prepended to avoid conflicts between
# different workflows.
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true
jobs:
build_packages:

Check failure on line 28 in .github/workflows/pkgci.yml

View workflow run for this annotation

GitHub Actions / PkgCI

Invalid workflow file

The workflow is not valid. .github/workflows/pkgci.yml (Line: 28, Col: 3): Error calling workflow 'nod-ai/shark-ai/.github/workflows/build_packages.yml@4c015a20096c524eb0c7e5fa19b87faeda764ca5'. The nested job 'build_packages' is requesting 'contents: write', but is only allowed 'contents: read'.
name: Build Packages
uses: ./.github/workflows/build_packages.yml
with:
build_type: "dev"
test_shark_ai:
name: Test shark-ai
needs: [build_packages]
uses: ./.github/workflows/pkgci_shark_ai.yml