From 4a3908496fffed6fafc0f28aa7566b8699553ca1 Mon Sep 17 00:00:00 2001 From: heckerpowered <72550834+heckerpowered@users.noreply.github.com> Date: Thu, 3 Oct 2024 15:33:07 +0800 Subject: [PATCH] try self-hosted runner --- .github/workflows/self-hosted.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/self-hosted.yml diff --git a/.github/workflows/self-hosted.yml b/.github/workflows/self-hosted.yml new file mode 100644 index 0000000..4a69a97 --- /dev/null +++ b/.github/workflows/self-hosted.yml @@ -0,0 +1,27 @@ +name: Publish to GitHub (Self Hosted) + +on: + push: + branches: ["main", "github-action"] + pull_request: + branches: ["main"] + +jobs: + build-macOS: + runs-on: self-hosted + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Build + run: | + xmake f -p macosx -a arm64 -m release + xmake -y + + - name: Upload Artifacts + uses: actions/upload-artifact@v4 + with: + name: Mamba + path: | + build/macosx/arm64/release/mamba \ No newline at end of file