From 86ed08cc9f1d72a78df7d80b058e75f3e916760f Mon Sep 17 00:00:00 2001 From: Danilo Tuler Date: Sat, 6 Apr 2024 18:18:35 -0300 Subject: [PATCH] manual build workflow --- .github/workflows/build.yml | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..6d86d16 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,39 @@ +name: build +on: + workflow_dispatch: + inputs: + version: + type: string + description: Node.js version to build (starting with 'v') + required: true + arch: + type: string + description: Architecture to build + default: riscv64 +jobs: + build: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + with: + path: unofficial-builds + + - name: build + run: bin/local_build.sh -r ${{ github.event.inputs.arch }} -v ${{ github.event.inputs.version }} + working-directory: unofficial-builds + env: + workdir: build + + # - name: save logs + # uses: actions/upload-artifact@v3 + # if: always() + # with: + # name: logs + # path: build/logs + + - name: save download + uses: actions/upload-artifact@v3 + if: always() + with: + name: download + path: staging/release/${{ github.event.inputs.version }}/