From 933345f6b74bc7925b1e598c87d311f9f591947f Mon Sep 17 00:00:00 2001 From: Manikandan Subramaniam <113734488+manikandan-xilinx@users.noreply.github.com> Date: Tue, 3 Sep 2024 16:05:33 -0700 Subject: [PATCH] CI/CD: enabling packages download for 2021.1 master pipeline (#8390) * enabling packages download for 2021.1 master pipeline * removing dependency on apu_package and windows --------- Co-authored-by: msubram --- .github/workflows/xrt_master_2021.1.yml | 60 ++++++++++++------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/.github/workflows/xrt_master_2021.1.yml b/.github/workflows/xrt_master_2021.1.yml index c7ee4a52a31..658fa58db02 100644 --- a/.github/workflows/xrt_master_2021.1.yml +++ b/.github/workflows/xrt_master_2021.1.yml @@ -167,38 +167,38 @@ jobs: # appConfig2: ${{ secrets.APP_CONFIG2 }} # appConfig3: ${{ secrets.APP_CONFIG3 }} - # package-download: - # needs: [build, apu-package-build, windows-build] - # runs-on: [self-hosted, Ubuntu-22.04] - # steps: - # - name: Set env variables - # run: | - # echo "Setting environment variables..." - # # echo "XRT_VERSION_PATCH=${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV - # echo "XRT_VERSION_PATCH=$(($GITHUB_RUN_NUMBER+210))" >> $GITHUB_ENV - # echo "PATH=/usr/bin:$PATH" >> $GITHUB_ENV + package-download: + needs: [build] + runs-on: [self-hosted, Ubuntu-22.04] + steps: + - name: Set env variables + run: | + echo "Setting environment variables..." + # echo "XRT_VERSION_PATCH=${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV + echo "XRT_VERSION_PATCH=$(($GITHUB_RUN_NUMBER+210))" >> $GITHUB_ENV + echo "PATH=/usr/bin:$PATH" >> $GITHUB_ENV - # - name: Checkout private repository - # uses: actions/checkout@v3 - # with: - # repository: actions-int/composite-workflows - # token: ${{ secrets.ACCESS_TOKEN }} - # github-server-url: ${{ secrets.SERVER_URL }} - # path: composite-workflows - # ref: main + - name: Checkout private repository + uses: actions/checkout@v3 + with: + repository: actions-int/composite-workflows + token: ${{ secrets.ACCESS_TOKEN }} + github-server-url: ${{ secrets.SERVER_URL }} + path: composite-workflows + ref: main - # - name: Use composite action package download - # uses: ./composite-workflows/package-download - # with: - # runNumber: ${{ env.XRT_VERSION_PATCH }} - # pipeline: ${{ env.PIPELINE }} - # env: ${{ env.ENV }} - # release: ${{ env.RELEASE }} - # sshKey: ${{ secrets.CI_PRIVATE_SSH_KEY }} - # accessToken: ${{ secrets.ACCESS_TOKEN }} - # NPATH: ${{ secrets.NPATH }} - # USER: ${{ secrets.USER }} - # github-server-url: ${{ secrets.SERVER_URL }} + - name: Use composite action package download + uses: ./composite-workflows/package-download + with: + runNumber: ${{ env.XRT_VERSION_PATCH }} + pipeline: ${{ env.PIPELINE }} + env: ${{ env.ENV }} + release: ${{ env.RELEASE }} + sshKey: ${{ secrets.CI_PRIVATE_SSH_KEY }} + accessToken: ${{ secrets.ACCESS_TOKEN }} + NPATH: ${{ secrets.NPATH }} + USER: ${{ secrets.USER }} + github-server-url: ${{ secrets.SERVER_URL }} # extract-platforms: # needs: package-download