forked from Xilinx/preflight-check
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
150 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,166 +1,166 @@ | ||
name: XRT CI Windows Bug | ||
# name: XRT CI Windows Bug | ||
|
||
env: | ||
RELEASE: '2024.1' | ||
PIPELINE: 'xrt' | ||
ENV: 'test' | ||
# env: | ||
# RELEASE: '2024.1' | ||
# PIPELINE: 'xrt' | ||
# ENV: 'test' | ||
|
||
on: | ||
pull_request_target: | ||
types: [opened, edited, synchronize] | ||
# on: | ||
# pull_request_target: | ||
# types: [opened, edited, synchronize] | ||
|
||
concurrency: | ||
group: ${{ github.event.pull_request.head.repo.full_name }}-${{ github.event.pull_request.head.ref }} | ||
cancel-in-progress: true | ||
# concurrency: | ||
# group: ${{ github.event.pull_request.head.repo.full_name }}-${{ github.event.pull_request.head.ref }} | ||
# cancel-in-progress: true | ||
|
||
jobs: | ||
authorize: | ||
runs-on: Ubuntu-22.04 | ||
steps: | ||
- name: Checkout private repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: actions-int/composite-workflows | ||
github-server-url: ${{ secrets.SERVER_URL }} | ||
token: ${{ secrets.ACCESS_TOKEN }} | ||
path: composite-workflows | ||
ref: main | ||
# jobs: | ||
# authorize: | ||
# runs-on: Ubuntu-22.04 | ||
# steps: | ||
# - name: Checkout private repository | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# repository: actions-int/composite-workflows | ||
# github-server-url: ${{ secrets.SERVER_URL }} | ||
# token: ${{ secrets.ACCESS_TOKEN }} | ||
# path: composite-workflows | ||
# ref: main | ||
|
||
- name: authorize | ||
uses: ./composite-workflows/authorize | ||
with: | ||
accessToken: ${{ secrets.CI_CLOUD_TOKEN }} | ||
pullRequestUser: ${{ github.event.pull_request.user.login }} | ||
# build: | ||
# needs: authorize | ||
# strategy: | ||
# matrix: | ||
# include: | ||
# - os: centos78 | ||
# packageType: rpm | ||
# - os: centos8 | ||
# packageType: rpm | ||
# - os: rhel9 | ||
# packageType: rpm | ||
# - os: ubuntu2004 | ||
# packageType: deb | ||
# - os: ubuntu2204 | ||
# packageType: deb | ||
# - name: authorize | ||
# uses: ./composite-workflows/authorize | ||
# with: | ||
# accessToken: ${{ secrets.CI_CLOUD_TOKEN }} | ||
# pullRequestUser: ${{ github.event.pull_request.user.login }} | ||
# # build: | ||
# # needs: authorize | ||
# # strategy: | ||
# # matrix: | ||
# # include: | ||
# # - os: centos78 | ||
# # packageType: rpm | ||
# # - os: centos8 | ||
# # packageType: rpm | ||
# # - os: rhel9 | ||
# # packageType: rpm | ||
# # - os: ubuntu2004 | ||
# # packageType: deb | ||
# # - os: ubuntu2204 | ||
# # packageType: deb | ||
|
||
# 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 "PATH=/usr/bin:$PATH" >> $GITHUB_ENV | ||
# # 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 "PATH=/usr/bin:$PATH" >> $GITHUB_ENV | ||
|
||
# - name: Checkout PR | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# repository: "${{ github.event.pull_request.head.repo.full_name }}" | ||
# ref: "${{ github.event.pull_request.head.ref }}" | ||
# fetch-depth: 0 | ||
# path: ${{ github.workspace }}/${{ github.run_number }} | ||
# submodules: recursive | ||
# # - name: Checkout PR | ||
# # uses: actions/checkout@v4 | ||
# # with: | ||
# # repository: "${{ github.event.pull_request.head.repo.full_name }}" | ||
# # ref: "${{ github.event.pull_request.head.ref }}" | ||
# # fetch-depth: 0 | ||
# # path: ${{ github.workspace }}/${{ github.run_number }} | ||
# # submodules: recursive | ||
|
||
# - name: Checkout private repository | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# repository: actions-int/composite-workflows | ||
# github-server-url: ${{ secrets.SERVER_URL }} | ||
# token: ${{ secrets.ACCESS_TOKEN }} | ||
# path: composite-workflows | ||
# ref: main | ||
# # - name: Checkout private repository | ||
# # uses: actions/checkout@v3 | ||
# # with: | ||
# # repository: actions-int/composite-workflows | ||
# # github-server-url: ${{ secrets.SERVER_URL }} | ||
# # token: ${{ secrets.ACCESS_TOKEN }} | ||
# # path: composite-workflows | ||
# # ref: main | ||
|
||
# - name: XRT build | ||
# uses: ./composite-workflows/build | ||
# with: | ||
# pipeline: ${{ env.PIPELINE }} | ||
# osVersion: ${{ matrix.os }} | ||
# packageType: ${{ matrix.packageType }} | ||
# workspace: ${{ github.workspace }} | ||
# buildNumber: ${{ github.run_number }} | ||
# accessToken: ${{ secrets.ACCESS_TOKEN }} | ||
# github-server-url: ${{ secrets.SERVER_URL }} | ||
# appConfig: ${{ secrets.APP_CONFIG }} | ||
# appConfig1: ${{ secrets.APP_CONFIG1 }} | ||
# appConfig2: ${{ secrets.APP_CONFIG2 }} | ||
# appConfig3: ${{ secrets.APP_CONFIG3 }} | ||
# # - name: XRT build | ||
# # uses: ./composite-workflows/build | ||
# # with: | ||
# # pipeline: ${{ env.PIPELINE }} | ||
# # osVersion: ${{ matrix.os }} | ||
# # packageType: ${{ matrix.packageType }} | ||
# # workspace: ${{ github.workspace }} | ||
# # buildNumber: ${{ github.run_number }} | ||
# # accessToken: ${{ secrets.ACCESS_TOKEN }} | ||
# # github-server-url: ${{ secrets.SERVER_URL }} | ||
# # appConfig: ${{ secrets.APP_CONFIG }} | ||
# # appConfig1: ${{ secrets.APP_CONFIG1 }} | ||
# # appConfig2: ${{ secrets.APP_CONFIG2 }} | ||
# # appConfig3: ${{ secrets.APP_CONFIG3 }} | ||
|
||
windows-build: | ||
needs: authorize | ||
runs-on: Windows | ||
steps: | ||
- name: Checkout PR | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: "Xilinx/XRT" | ||
ref: "865e886a49ef841e7e1b45286365018e74cdc0b5" | ||
fetch-depth: 0 | ||
path: ${{ github.workspace }}/${{ github.run_number }} | ||
submodules: recursive | ||
persist-credentials: false | ||
# windows-build: | ||
# needs: authorize | ||
# runs-on: Windows | ||
# steps: | ||
# - name: Checkout PR | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# repository: "Xilinx/XRT" | ||
# ref: "865e886a49ef841e7e1b45286365018e74cdc0b5" | ||
# fetch-depth: 0 | ||
# path: ${{ github.workspace }}/${{ github.run_number }} | ||
# submodules: recursive | ||
# persist-credentials: false | ||
|
||
- name: Checkout private repository | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: actions-int/composite-workflows | ||
github-server-url: ${{ secrets.SERVER_URL }} | ||
token: ${{ secrets.ACCESS_TOKEN }} | ||
path: composite-workflows | ||
ref: main | ||
# - name: Checkout private repository | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# repository: actions-int/composite-workflows | ||
# github-server-url: ${{ secrets.SERVER_URL }} | ||
# token: ${{ secrets.ACCESS_TOKEN }} | ||
# path: composite-workflows | ||
# ref: main | ||
|
||
- name: XRT windows build | ||
uses: ./composite-workflows/windows-build | ||
with: | ||
workspace: ${{ github.workspace }}/${{ github.run_number }}/build | ||
buildNumber: ${{ github.run_number }} | ||
release: ${{ env.RELEASE }} | ||
accessToken: ${{ secrets.ACCESS_TOKEN }} | ||
workspaceg: ${{ github.workspace }} | ||
github-server-url: ${{ secrets.SERVER_URL }} | ||
# - name: XRT windows build | ||
# uses: ./composite-workflows/windows-build | ||
# with: | ||
# workspace: ${{ github.workspace }}/${{ github.run_number }}/build | ||
# buildNumber: ${{ github.run_number }} | ||
# release: ${{ env.RELEASE }} | ||
# accessToken: ${{ secrets.ACCESS_TOKEN }} | ||
# workspaceg: ${{ github.workspace }} | ||
# github-server-url: ${{ secrets.SERVER_URL }} | ||
|
||
# apu-package-build: | ||
# needs: authorize | ||
# runs-on: apu | ||
# # runs-on: Ubuntu-20.04 | ||
# steps: | ||
# - name: Set env variables | ||
# run: | | ||
# echo "Setting environment variables..." | ||
# echo "XRT_VERSION_PATCH=${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV | ||
# echo "PATH=/usr/bin:$PATH" >> $GITHUB_ENV | ||
# # apu-package-build: | ||
# # needs: authorize | ||
# # runs-on: apu | ||
# # # runs-on: Ubuntu-20.04 | ||
# # steps: | ||
# # - name: Set env variables | ||
# # run: | | ||
# # echo "Setting environment variables..." | ||
# # echo "XRT_VERSION_PATCH=${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV | ||
# # echo "PATH=/usr/bin:$PATH" >> $GITHUB_ENV | ||
|
||
# - name: Checkout PR | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# repository: "${{ github.event.pull_request.head.repo.full_name }}" | ||
# ref: "${{ github.event.pull_request.head.ref }}" | ||
# fetch-depth: 0 | ||
# path: ${{ github.workspace }}/${{ github.run_number }} | ||
# submodules: recursive | ||
# # - name: Checkout PR | ||
# # uses: actions/checkout@v3 | ||
# # with: | ||
# # repository: "${{ github.event.pull_request.head.repo.full_name }}" | ||
# # ref: "${{ github.event.pull_request.head.ref }}" | ||
# # fetch-depth: 0 | ||
# # path: ${{ github.workspace }}/${{ github.run_number }} | ||
# # submodules: recursive | ||
|
||
# - 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: Apu package build for XRT | ||
# uses: ./composite-workflows/apu-package | ||
# with: | ||
# pipeline: ${{ env.PIPELINE }} | ||
# workspace: ${{ github.workspace }} | ||
# buildNumber: ${{ github.run_number }} | ||
# apuPackage: 'True' | ||
# release: ${{ env.RELEASE }} | ||
# accessToken: ${{ secrets.ACCESS_TOKEN }} | ||
# github-server-url: ${{ secrets.SERVER_URL }} | ||
# appConfig: ${{ secrets.APP_CONFIG }} | ||
# appConfig1: ${{ secrets.APP_CONFIG1 }} | ||
# appConfig2: ${{ secrets.APP_CONFIG2 }} | ||
# appConfig3: ${{ secrets.APP_CONFIG3 }} | ||
# # - name: Apu package build for XRT | ||
# # uses: ./composite-workflows/apu-package | ||
# # with: | ||
# # pipeline: ${{ env.PIPELINE }} | ||
# # workspace: ${{ github.workspace }} | ||
# # buildNumber: ${{ github.run_number }} | ||
# # apuPackage: 'True' | ||
# # release: ${{ env.RELEASE }} | ||
# # accessToken: ${{ secrets.ACCESS_TOKEN }} | ||
# # github-server-url: ${{ secrets.SERVER_URL }} | ||
# # appConfig: ${{ secrets.APP_CONFIG }} | ||
# # appConfig1: ${{ secrets.APP_CONFIG1 }} | ||
# # appConfig2: ${{ secrets.APP_CONFIG2 }} | ||
# # appConfig3: ${{ secrets.APP_CONFIG3 }} |