Skip to content

initial open-source release #7

initial open-source release

initial open-source release #7

Workflow file for this run

# Copyright 2023-present, Mark Delk
# SPDX-License-Identifier: Apache-2.0
name: macos
on:
push:
branches: ["gh-ci-macos"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
timeout-minutes: 20
env:
CI: true
HOMEBREW_NO_INSTALL_CLEANUP: true
ZIG: zig-macos-x86_64-0.12.0-dev.1861+412999621
runs-on: macos-13
steps:
- name: checkout code
uses: actions/checkout@v4
- name: check for cached zig
id: cache-zig
uses: actions/cache@v3
with:
path: ${{ env.ZIG }}
key: ${{ env.ZIG }}
- if: ${{ steps.cache-zig.outputs.cache-hit != 'true' }}
name: download and untar zig tarball
run: |
wget -nv https://ziglang.org/builds/${ZIG}.tar.xz
tar xf ${ZIG}.tar.xz
- name: add zig to PATH
run: |
echo ${PWD}/${ZIG} >> $GITHUB_PATH
- name: build
run: |
zig version
zig build --summary all --verbose -Doptimize=ReleaseFast -Dtarget=x86_64-macos.13.0...13.0-none -p vosk/x86_64-macos
zig build --summary all --verbose -Doptimize=ReleaseFast -Dtarget=aarch64-macos.13.0...13.0-none -p vosk/aarch64-macos
- uses: actions/upload-artifact@v3
with:
name: vosk
path: |
vosk
!**/*.DS_Store
if-no-files-found: error