From bc92c17d7cade6171931eff0c4e2476555b7f82a Mon Sep 17 00:00:00 2001 From: qiaojbao Date: Wed, 16 Apr 2025 17:07:18 +0800 Subject: [PATCH 1/2] test new ci action --- .github/workflows/check-xgl-docker.yml | 1 - .github/workflows/psdb.yml | 41 ++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/psdb.yml diff --git a/.github/workflows/check-xgl-docker.yml b/.github/workflows/check-xgl-docker.yml index 6b21844a..555c4eaa 100644 --- a/.github/workflows/check-xgl-docker.yml +++ b/.github/workflows/check-xgl-docker.yml @@ -5,7 +5,6 @@ on: branches: - '*' - '!master' - pull_request: jobs: build-and-test: diff --git a/.github/workflows/psdb.yml b/.github/workflows/psdb.yml new file mode 100644 index 00000000..f934e3e5 --- /dev/null +++ b/.github/workflows/psdb.yml @@ -0,0 +1,41 @@ +name: PSDB for XGL + +on: + pull_request: + +jobs: + build: + name: build amdvlk + runs-on: [self-hosted, build] + steps: + - name: Checkout and build AMDVLK driver + run: | + ~/bin/repo init -u https://github.com/GPUOpen-Drivers/AMDVLK.git -b dev --depth=1 + ~/bin/repo sync + rm drivers/${GITHUB_REPOSITORY} -rf + mkdir drivers/${GITHUB_REPOSITORY} && cd drivers/${GITHUB_REPOSITORY} + git clone https://github.com/${GITHUB_REPOSITORY}.git . + git fetch origin +${GITHUB_SHA}:${GITHUB_REF} --update-head-ok + git checkout ${GITHUB_SHA} + git submodule update -i --recursive + cd - + cmake -G Ninja -S drivers/xgl -B Release64 + cmake --build Release64 + echo "$GITHUB_RUN_ID-$GITHUB_RUN_NUMBER" + echo "$TASK_ID" + - name: Upload AMDVLK driver + uses: actions/upload-artifact@v4 + with: + name: driver + path: Release64/icd/amdvlk64.so + test: + name: vkcts test with amdvlk + runs-on: [self-hosted, navi48] + needs: build + steps: + - name: download driver + uses: actions/download-artifact@v4 + with: + name: driver + path: ./ + \ No newline at end of file From 17a24fbec960df6e1dfd2e44062355da022589c5 Mon Sep 17 00:00:00 2001 From: qiaojbao Date: Mon, 12 May 2025 17:44:21 +0800 Subject: [PATCH 2/2] update repo name --- .github/workflows/psdb.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/psdb.yml b/.github/workflows/psdb.yml index f934e3e5..1502e78f 100644 --- a/.github/workflows/psdb.yml +++ b/.github/workflows/psdb.yml @@ -10,10 +10,11 @@ jobs: steps: - name: Checkout and build AMDVLK driver run: | + REPO_NAME=$(echo "${GITHUB_REPOSITORY}" | tr -d "GPUOpen-Drivers/") ~/bin/repo init -u https://github.com/GPUOpen-Drivers/AMDVLK.git -b dev --depth=1 ~/bin/repo sync - rm drivers/${GITHUB_REPOSITORY} -rf - mkdir drivers/${GITHUB_REPOSITORY} && cd drivers/${GITHUB_REPOSITORY} + rm drivers/$REPO_NAME -rf + mkdir drivers/$REPO_NAME && cd drivers/$REPO_NAME git clone https://github.com/${GITHUB_REPOSITORY}.git . git fetch origin +${GITHUB_SHA}:${GITHUB_REF} --update-head-ok git checkout ${GITHUB_SHA}