From 292710a760f1085dc994ed41b1b64143bbf02dc1 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Fri, 15 Sep 2023 16:35:13 +0800 Subject: [PATCH] Add linux and macos build --- .github/workflows/linux.yml | 32 ++++++++++++++++++++++++++++++++ .github/workflows/macos.yml | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 .github/workflows/linux.yml create mode 100644 .github/workflows/macos.yml diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 0000000..5cd8931 --- /dev/null +++ b/.github/workflows/linux.yml @@ -0,0 +1,32 @@ +name: Linux Build +on: + push: + branches: [ "gh-pipeline" ] + pull_request: + branches: [ "gh-pipeline" ] + +jobs: + build-and-upload: + + runs-on: ubuntu-latest + + steps: + + - name: Checkout repo + uses: actions/checkout@v3 + + - name: Compile chsrc x64 + run: | + make CI CI_BUILD_NAME=chsrc-x64-linux + + - name: List files + run: ls *-linux + + - name: Release + uses: softprops/action-gh-release@v1 + # if: startsWith(github.ref, 'refs/tags/') + with: + tag_name: preview + files: | + chsrc-x64-linux + token: ${{ secrets.CHSRC_UPLOAD }} diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 0000000..bb8a694 --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,32 @@ +name: macOS Build +on: + push: + branches: [ "gh-pipeline" ] + pull_request: + branches: [ "gh-pipeline" ] + +jobs: + build-and-upload: + + runs-on: macos-latest + + steps: + + - name: Checkout repo + uses: actions/checkout@v3 + + - name: Compile chsrc x64 + run: | + make CI CI_BUILD_NAME=chsrc-x64-macos + + - name: List files + run: ls *-macos + + - name: Release + uses: softprops/action-gh-release@v1 + # if: startsWith(github.ref, 'refs/tags/') + with: + tag_name: preview + files: | + chsrc-x64-macos + token: ${{ secrets.CHSRC_UPLOAD }}