Skip to content

Commit 312a655

Browse files
ci: release macOS arm64 binary (#2)
1 parent 4bec1be commit 312a655

File tree

3 files changed

+56
-1
lines changed

3 files changed

+56
-1
lines changed

.github/workflows/release.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Copyright 2025 Yunze Xu
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Release
16+
17+
on:
18+
push:
19+
tags:
20+
- 'v*'
21+
22+
concurrency:
23+
group: ${{ github.workflow }}-${{ github.ref }}
24+
cancel-in-progress: true
25+
26+
jobs:
27+
28+
release-osx-arm64:
29+
name: Build binary on macOS arm64
30+
runs-on: macos-14
31+
timeout-minutes: 60
32+
33+
steps:
34+
- name: checkout
35+
uses: actions/checkout@v3
36+
with:
37+
fetch-depth: 0
38+
submodules: recursive
39+
40+
- name: build
41+
run: |
42+
echo "Building for macOS..."
43+
mkdir -p build
44+
cmake -B build
45+
cmake --build build
46+
cp ./build/snctl-cpp .
47+
48+
- name: upload
49+
uses: actions/upload-artifact@master
50+
with:
51+
name: snctl-cpp-macos-14-arm64
52+
path: snctl-cpp

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "vcpkg"]
2+
path = vcpkg
3+
url = https://github.com/microsoft/vcpkg.git

vcpkg

Submodule vcpkg updated 631 files

0 commit comments

Comments
 (0)