From 8fd6e4fe9e613796447bc367c3ca0b9f21b4ee05 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Fri, 18 Apr 2025 07:16:40 +0200 Subject: [PATCH] Upload page --- .github/workflows/build.yml | 60 ++++++++++++++++++++++++++++++++++--- 1 file changed, 56 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0c2bc13f..99ca26d8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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