Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/xrt_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ concurrency:
jobs:
authorize:
runs-on: [self-hosted, Ubuntu-22.04]
outputs:
trusted: ${{ steps.authorize.outputs.trusted }}
steps:
- name: Checkout private repository
uses: actions/checkout@v4
Expand All @@ -27,6 +29,7 @@ jobs:
ref: main

- name: authorize
id: authorize
uses: ./composite-workflows/authorize
with:
app-id: ${{ secrets.XRT_APP_ID }}
Expand Down Expand Up @@ -168,6 +171,20 @@ jobs:
path: composite-workflows
ref: main

# Read-only token for github.com/AMD-AECG-SSW-PUBLIC, where the internal
# PetaLinux mirrors redirect github.com/Xilinx fetches. bitbake only needs
# it when sstate and the download mirrors miss.
# Skipped for build-label runs: that PR code comes from outside contributors.
- name: Mint EMU fetch token
id: emu-token
if: needs.authorize.outputs.trusted == 'true'
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.EMU_FETCH_APP_ID }}
private-key: ${{ secrets.EMU_FETCH_APP_PRIVATE_KEY }}
owner: AMD-AECG-SSW-PUBLIC
permission-contents: read

- name: Apu package build for XRT
uses: ./composite-workflows/apu-package
with:
Expand All @@ -182,6 +199,7 @@ jobs:
appConfig1: ${{ secrets.APP_CONFIG1 }}
appConfig2: ${{ secrets.APP_CONFIG2 }}
appConfig3: ${{ secrets.APP_CONFIG3 }}
emuToken: ${{ steps.emu-token.outputs.token }}

package-download:
needs: build
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/xrt_master_2026.2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,18 @@ jobs:
path: composite-workflows
ref: main

# Read-only token for github.com/AMD-AECG-SSW-PUBLIC, where the internal
# PetaLinux mirrors redirect github.com/Xilinx fetches. bitbake only needs
# it when sstate and the download mirrors miss.
- name: Mint EMU fetch token
id: emu-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.EMU_FETCH_APP_ID }}
private-key: ${{ secrets.EMU_FETCH_APP_PRIVATE_KEY }}
owner: AMD-AECG-SSW-PUBLIC
permission-contents: read

- name: Apu package build for XRT
uses: ./composite-workflows/apu-package
with:
Expand All @@ -184,6 +196,7 @@ jobs:
appConfig1: ${{ secrets.APP_CONFIG1 }}
appConfig2: ${{ secrets.APP_CONFIG2 }}
appConfig3: ${{ secrets.APP_CONFIG3 }}
emuToken: ${{ steps.emu-token.outputs.token }}

package-download:
needs: [build, apu-package-build, windows-build]
Expand Down
Loading