Skip to content

Commit ecb3dd2

Browse files
committed
ci: release macOS arm64 binary
1 parent 4bec1be commit ecb3dd2

File tree

3 files changed

+60
-1
lines changed

3 files changed

+60
-1
lines changed

.github/workflows/release.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+
# TODO: delete the following line after the CI passes
22+
pull_request:
23+
branches:
24+
- main
25+
26+
concurrency:
27+
group: ${{ github.workflow }}-${{ github.ref }}
28+
cancel-in-progress: true
29+
30+
jobs:
31+
32+
release-osx-arm64:
33+
name: Build binary on macOS arm64
34+
runs-on: macos-14
35+
timeout-minutes: 60
36+
37+
strategy:
38+
- name: checkout
39+
uses: actions/checkout@v3
40+
with:
41+
fetch-depth: 0
42+
submodules: recursive
43+
44+
- name: build
45+
run: |
46+
echo "Building for macOS..."
47+
mkdir -p build
48+
cmake -B build
49+
cmake --build build
50+
cp ./build/snctl-cpp .
51+
52+
- name: upload
53+
uses: actions/upload-artifact@master
54+
with:
55+
name: macos-14-arm64.zip
56+
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)