From 0b7efecdbfbf828d250abd69c31e68515521c51a Mon Sep 17 00:00:00 2001 From: eko5624 <562433403@qq.com> Date: Mon, 17 Feb 2025 16:36:29 +0800 Subject: [PATCH] Create mujs.yml --- .github/workflows/mujs.yml | 49 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/mujs.yml diff --git a/.github/workflows/mujs.yml b/.github/workflows/mujs.yml new file mode 100644 index 00000000..d6cc7d7b --- /dev/null +++ b/.github/workflows/mujs.yml @@ -0,0 +1,49 @@ +name: mujs +defaults: + run: + shell: D:\msys64\msys2.cmd {0} +on: + workflow_dispatch: + inputs: + compiler: + description: "Compiler" + required: false + default: "gcc" + type: choice + options: + - gcc + - clang + #schedule: + #- cron: '30 0 * * MON' + +jobs: + mujs: + runs-on: windows-2022 + env: + COMPILER: ${{ inputs.compiler }} + GH_TOKEN: ${{ secrets.BOT }} + steps: + - name: Prepare + run: git config --global core.autocrlf input + shell: bash + - name: Checkout + uses: actions/checkout@main + - name: Cache msys2 + uses: actions/cache@main + with: + path: D:\msys64 + key: msys2 + - name: Cache ${{ inputs.compiler }} Toolchain + uses: actions/cache@main + with: + path: D:\ucrt64 + key: ${{ inputs.compiler }}-ucrt-x86_64 + - name: Setup Python + uses: actions/setup-python@main + with: + python-version: '3.12' + - name: Build + run: cd mujs; makepkg-$COMPILER + - name: Release + shell: bash + run: ./release-dev.sh mujs-dev mujs \ No newline at end of file