From 58d36add747ec1dcade1291f003c5233848b15f5 Mon Sep 17 00:00:00 2001 From: Kabir Oberai Date: Sun, 24 May 2026 22:57:53 -0400 Subject: [PATCH 1/2] Build workflow --- .github/actions/configure-xcode/action.yml | 9 +++++++++ .github/workflows/build.yml | 17 +++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .github/actions/configure-xcode/action.yml create mode 100644 .github/workflows/build.yml diff --git a/.github/actions/configure-xcode/action.yml b/.github/actions/configure-xcode/action.yml new file mode 100644 index 0000000..e809abb --- /dev/null +++ b/.github/actions/configure-xcode/action.yml @@ -0,0 +1,9 @@ +name: 'Configure Xcode' +description: 'Set up Xcode version' +runs: + using: composite + steps: + - name: Set up Xcode + shell: bash + run: | + sudo xcode-select -s /Applications/Xcode_26.4.app diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..400fc4e --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,17 @@ +on: + push: + branches: + - main + pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true +jobs: + build: + runs-on: macos-26 + steps: + - name: Checkout + uses: actions/checkout@v6 + - uses: ./.github/actions/configure-xcode + - name: Build + run: ./build.sh From 4d4578c5f5f08d090a79f6f1a95ae9e7fe96c8c7 Mon Sep 17 00:00:00 2001 From: Kabir Oberai Date: Sun, 24 May 2026 23:00:37 -0400 Subject: [PATCH 2/2] Release workflow --- .github/workflows/release.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..49204ad --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,18 @@ +on: + push: + tags: + - "v*" +jobs: + build: + runs-on: macos-26 + steps: + - name: Checkout + uses: actions/checkout@v6 + - uses: ./.github/actions/configure-xcode + - name: Build + run: ./build.sh + - name: Create and publish release + run: | + TAG="${{ github.ref_name }}" + gh release create "$TAG" --draft --title "v$TAG" + gh release upload "$TAG" out/*.dylib