Initial commit #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: playground | ||
run-name: ${{ gitea.actor }} build and run tree-sitter-objectscript on rdp.iscinternal.com 🚀 | ||
on: [push] | ||
jobs: | ||
RDP-Playground: | ||
# MUST Use rdp_metal to make sure the action picks a runner that is on the rdp node, not a docker image | ||
# You should NOT use this in general for CI. Prefer the runner daemon on docker | ||
# See ci.yaml for our main workflow | ||
runs-on: rdp_metal | ||
steps: | ||
- run: printenv | ||
- run: id | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
- run: npm install | ||
- run: npm run gen --workspace=udl | ||
- run: npm run build-wasm --workspace=udl | ||
- run: systemctl --user stop ts-playground.service | ||
- run: mkdir -p /home/act_runner/ts-playground | ||
- run: mkdir -p /home/act_runner/ts-playground/src | ||
- run: cp udl/tree-sitter-objectscript_udl.wasm /home/act_runner/ts-playground | ||
- run: cp udl/src/grammar.json /home/act_runner/ts-playground/src | ||
- run: systemctl --user start ts-playground.service |