diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..ed6227d --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,52 @@ +# Copyright 2025 Yunze Xu +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: Release + +on: + push: + tags: + - 'v*' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + + release-osx-arm64: + name: Build binary on macOS arm64 + runs-on: macos-14 + timeout-minutes: 60 + + steps: + - name: checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + submodules: recursive + + - name: build + run: | + echo "Building for macOS..." + mkdir -p build + cmake -B build + cmake --build build + cp ./build/snctl-cpp . + + - name: upload + uses: actions/upload-artifact@master + with: + name: snctl-cpp-macos-14-arm64 + path: snctl-cpp diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..a0a57f3 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "vcpkg"] + path = vcpkg + url = https://github.com/microsoft/vcpkg.git diff --git a/vcpkg b/vcpkg index 760bfd0..f26ec39 160000 --- a/vcpkg +++ b/vcpkg @@ -1 +1 @@ -Subproject commit 760bfd0c8d7c89ec640aec4df89418b7c2745605 +Subproject commit f26ec398c25c4980f33a50391f00a75f7ad62ef7