Upload page

This commit is contained in:
momo5502
2025-04-18 07:16:40 +02:00
parent b170dac195
commit 8fd6e4fe9e

View File

@@ -481,10 +481,10 @@ jobs:
arch: ${{matrix.architecture}}
script: "adb push build/${{matrix.preset}}/artifacts/* /data/local/tmp && adb shell \"cd /data/local/tmp && export LD_LIBRARY_PATH=. && chmod +x ./analyzer && EMULATOR_ICICLE=${{ matrix.emulator == 'Icicle' }} ./analyzer -e ./root c:/test-sample.exe\""
page:
name: Page
build-page:
name: Build Page
runs-on: ubuntu-latest
#needs: [build]
needs: [create-emulation-root, build]
permissions:
contents: read
pages: write
@@ -495,6 +495,58 @@ jobs:
with:
submodules: recursive
- name: Download Emscripten Artifacts
uses: pyTooling/download-artifact@v4
with:
name: Emscripten Release Artifacts
path: build/release/artifacts
- name: Download Windows Artifacts
uses: pyTooling/download-artifact@v4
with:
name: Windows x86_64 Release Artifacts
path: build/release/artifacts
- name: Download Emulation Root
uses: pyTooling/download-artifact@v4
with:
name: Windows 2022 Emulation Root
path: build/release/artifacts/root
- name: Copy Sample
run: cp ./build/release/artifacts/test-sample.exe build/release/artifacts/root/filesys/c/
- name: Create Emulation Root zip
run: zip -r ./page/root.zip ./build/release/artifacts/test-sample.exe build/release/artifacts/root
- name: Copy Files
run: |
cp ./build/release/artifacts/analyzer.js ./page/
cp ./build/release/artifacts/analyzer.wasm ./page/
- name: Upload Page Artifacts
uses: pyTooling/upload-artifact@v4
with:
name: Page Artifacts
working-directory: page/
path: "*"
deploy-page:
name: Deploy Page
runs-on: ubuntu-latest
needs: [build-page]
#if: github.repository_owner == 'momo5502' && github.event_name == 'push' && github.ref == 'refs/heads/main'
permissions:
contents: read
pages: write
id-token: write
steps:
- name: Download Page Artifacts
uses: pyTooling/download-artifact@v4
with:
name: Page Artifacts
path: ./page/
- name: Setup Pages
uses: actions/configure-pages@v5
@@ -510,7 +562,7 @@ jobs:
summary:
name: Pipeline Summary
runs-on: ubuntu-24.04
needs: [clang-tidy, build-apiset-dumper, smoke-test-android, create-emulation-root, build, test, win-test, verify-formatting]
needs: [build-page, clang-tidy, build-apiset-dumper, smoke-test-android, create-emulation-root, build, test, win-test, verify-formatting]
if: always()
steps:
- uses: geekyeggo/delete-artifact@v5