From d1977673aa3a7e6fc6369d1094c01be8f1994287 Mon Sep 17 00:00:00 2001 From: Zerofo <46804648+zerofo@users.noreply.github.com> Date: Mon, 25 Oct 2021 12:08:28 +0800 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 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 000000000..146819c67 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,43 @@ +name: NX_CI + +on: + push: + branches: + - master + release: + types: [published] +jobs: + build_NX: + runs-on: ubuntu-latest + + steps: + - name: Extract owner and repo + uses: jungwinter/split@v1 + id: repo + with: + seperator: / + msg: ${{ github.repository }} + - name: Checkout + uses: actions/checkout@v2 + with: + ref: master + submodules: recursive + - name: Use Docker Build + uses: actions-hub/docker/cli@master + env: + SKIP_LOGIN: true + - run: | + docker run -t --rm --name builder -v `pwd`:`pwd` -w `pwd` zerofo/ns_dev:0.4 make dist-no-debug -j8 + + - name: Upload file + uses: actions/upload-artifact@v2 + with: + path: ./out/*zip + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.release_token }} + file: ./out/*zip + tag: ${{ github.ref }} + overwrite: true + file_glob: true