Skip to content

Commit ba2ae97

Browse files
committed
Added github workflow
1 parent 266d324 commit ba2ae97

File tree

1 file changed

+6
-17
lines changed

1 file changed

+6
-17
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -103,36 +103,25 @@ jobs:
103103
- name: Run tests
104104
run: ctest --test-dir build --output-on-failure -C ${{ matrix.build_type }}
105105

106-
build-linux-arm64:
107-
runs-on: ubuntu-24.04-arm
108-
strategy:
109-
fail-fast: false
110-
matrix:
111-
build_type: [Release]
112-
106+
build-macos-arm64:
107+
runs-on: macos-14 # M1 runner
113108
steps:
114109
- uses: actions/checkout@v4
115110

116111
- name: Install dependencies
117-
run: |
118-
sudo apt-get update
119-
sudo apt-get install -y \
120-
libcairo2-dev \
121-
libjpeg-dev \
122-
zlib1g-dev \
123-
libzstd-dev
112+
run: brew install cairo jpeg zstd
124113

125114
- name: Configure CMake
126115
run: |
127116
cmake -B build \
128-
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
117+
-DCMAKE_BUILD_TYPE=Release \
129118
-DENABLE_NATIVE_ARCH=OFF
130119
131120
- name: Build
132-
run: cmake --build build -j$(nproc)
121+
run: cmake --build build -j$(sysctl -n hw.ncpu)
133122

134123
- name: Run tests
135-
run: ctest --test-dir build --output-on-failure -j$(nproc)
124+
run: ctest --test-dir build --output-on-failure
136125

137126
# Minimal build without optional dependencies
138127
build-minimal:

0 commit comments

Comments
 (0)