|
80 | 80 | rustc --target wasm32-unknown-unknown --crate-type cdylib plug.app/rt/src_plugins/pTerm/pTerm.rs -o plugins/pTerm.wasm -C opt-level=z -C lto=true -C link-arg=--allow-undefined |
81 | 81 | cp plug.app/rt/src_plugins/plugin.toml plugins/plugin.toml |
82 | 82 |
|
| 83 | + - name: Sync pTerm hash from registry |
| 84 | + run: | |
| 85 | + REGISTRY_SHA=$(curl -sL "https://raw.githubusercontent.com/PlugFrameWork/plug/trunk/plugins/pTerm/pTerm" | sha256sum | cut -d' ' -f1) |
| 86 | + echo "Registry SHA256: $REGISTRY_SHA" |
| 87 | + echo "$REGISTRY_SHA" > plug.app/rt/pterm_hash.txt |
| 88 | + git config user.name "github-actions" |
| 89 | + git config user.email "actions@github.com" |
| 90 | + git add plug.app/rt/pterm_hash.txt |
| 91 | + git commit -m "chore: sync pterm hash from registry" || true |
| 92 | + git push origin HEAD:${{ github.ref }} || true |
| 93 | +
|
83 | 94 | - name: Run CMake Configuration |
84 | 95 | shell: bash |
85 | 96 | run: | |
@@ -129,6 +140,17 @@ jobs: |
129 | 140 | rustc --target wasm32-unknown-unknown --crate-type cdylib plug.app/rt/src_plugins/pTerm/pTerm.rs -o plugins/pTerm.wasm -C opt-level=z -C lto=true -C link-arg=--allow-undefined |
130 | 141 | cp plug.app/rt/src_plugins/plugin.toml plugins/plugin.toml |
131 | 142 |
|
| 143 | + - name: Sync pTerm hash from registry |
| 144 | + run: | |
| 145 | + REGISTRY_SHA=$(curl -sL "https://raw.githubusercontent.com/PlugFrameWork/plug/trunk/plugins/pTerm/pTerm" | sha256sum | cut -d' ' -f1) |
| 146 | + echo "Registry SHA256: $REGISTRY_SHA" |
| 147 | + echo "$REGISTRY_SHA" > plug.app/rt/pterm_hash.txt |
| 148 | + git config user.name "github-actions" |
| 149 | + git config user.email "actions@github.com" |
| 150 | + git add plug.app/rt/pterm_hash.txt |
| 151 | + git commit -m "chore: sync pterm hash from registry" || true |
| 152 | + git push origin HEAD:${{ github.ref }} || true |
| 153 | +
|
132 | 154 | - name: Run CMake Configuration |
133 | 155 | run: | |
134 | 156 | cmake -G Ninja -S plug.cross/linux -B plug.cross/linux/build "-DRUST_LIB_PATH=${{ github.workspace }}/plug.app/rt/target/x86_64-unknown-linux-gnu/release/libtm_main.a" -DCMAKE_BUILD_TYPE=Release -DPLUG_ENABLE_HEADLESS_MODE=ON |
|
0 commit comments