fixing CI
Test / build_and_test (push) Successful in 20s
Build / build (push) Successful in 26s

This commit is contained in:
2026-06-02 22:09:41 +02:00
parent 042662a928
commit 8cd40c40f0
2 changed files with 21 additions and 36 deletions
+2 -8
View File
@@ -24,12 +24,6 @@ jobs:
- name: Generating docs - name: Generating docs
run: zig build docs run: zig build docs
- name: Prepare docs deploy payload
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
run: |
mkdir -p ./deploy-docs
cp ./zig-out/docs/index.html ./deploy-docs/404.html
- name: Deploying docs - name: Deploying docs
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
uses: milanmk/actions-file-deployer@master uses: milanmk/actions-file-deployer@master
@@ -39,6 +33,6 @@ jobs:
remote-user: ${{ secrets.SFTP_USER_DOCS }} remote-user: ${{ secrets.SFTP_USER_DOCS }}
remote-password: ${{ secrets.SFTP_PASSWORD_DOCS }} remote-password: ${{ secrets.SFTP_PASSWORD_DOCS }}
remote-port: 6969 remote-port: 6969
local-path: "./deploy-docs" local-path: "./zig-out/docs"
remote-path: "/www/error" remote-path: "/www"
sync: full sync: full
@@ -1,4 +1,4 @@
name: CTS name: CTS Soft
on: on:
workflow_dispatch: workflow_dispatch:
@@ -9,10 +9,10 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: https://codeberg.org/mlugg/setup-zig@v2
- uses: actions/setup-node@v6
with: with:
node-version: 24 fetch-depth: 0
- uses: https://codeberg.org/mlugg/setup-zig@v2
- name: Install system dependencies - name: Install system dependencies
run: | run: |
apt update apt update
@@ -22,7 +22,7 @@ jobs:
uses: dtolnay/rust-toolchain@stable uses: dtolnay/rust-toolchain@stable
with: with:
toolchain: stable toolchain: stable
targets: x86_64-unknown-linux-gnu,wasm32-unknown-unknown targets: x86_64-unknown-linux-gnu
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
with: with:
@@ -32,13 +32,6 @@ jobs:
- name: Install cargo tools - name: Install cargo tools
uses: cargo-bins/cargo-binstall@main uses: cargo-bins/cargo-binstall@main
- name: Install Dioxus
shell: bash
run: |
source $HOME/.cargo/env
cargo binstall dioxus-cli --no-confirm --force --version 0.7.9
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Install deqp-runner - name: Install deqp-runner
run: cargo install deqp-runner run: cargo install deqp-runner
@@ -47,7 +40,6 @@ jobs:
run: | run: |
source $HOME/.cargo/env source $HOME/.cargo/env
echo "Verifying tool installations..." echo "Verifying tool installations..."
which dx && dx --version || echo "dioxus-cli not found"
which deqp-runner && deqp-runner --version || echo "deqp-runner not found" which deqp-runner && deqp-runner --version || echo "deqp-runner not found"
- name: Run Vulkan CTS - name: Run Vulkan CTS
@@ -57,21 +49,20 @@ jobs:
- name: Verify tests - name: Verify tests
run: ls cts | grep "results.csv"; run: ls cts | grep "results.csv";
- name: Cloning CTS viewer - name: Archiving results
run: git clone https://git.kbz8.me/kbz_8/VulkanCTSViewer.git
- name: Build CTS viewer
env:
URL: https://vulkan-driver-cts-report.kbz8.me/
run: | run: |
cd VulkanCTSViewer mkdir -p assets/
zip ./assets/results.zip ../cts/results.csv zip ./assets/results.zip ./cts/results.csv
dx build --verbose --platform web --release
- name: Publish to Cloudflare Pages - name: Deploying CTS results
uses: cloudflare/wrangler-action@v3 if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
uses: milanmk/actions-file-deployer@master
with: with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} remote-protocol: sftp
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} remote-host: ${{ secrets.SFTP_HOST_CTS_SOFT }}
command: pages deploy VulkanCTSViewer/target/dx/vulkan-cts-analyzer/release/web/public --project-name=vulkan-driver-cts-report remote-user: ${{ secrets.SFTP_USER_CTS_SOFT }}
gitHubToken: ${{ secrets.GITHUB_TOKEN }} remote-password: ${{ secrets.SFTP_PASSWORD_CTS_SOFT }}
remote-port: 6969
local-path: "./assets"
remote-path: "/www/assets"
sync: full