Skip to content

V2025.8.0

V2025.8.0 #188

Workflow file for this run

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
types: [ "review_requested", "ready_for_review" ]
workflow_dispatch:
name: macOS
permissions:
id-token: write
contents: read
env:
GITHUB_ACTIONS: true
VCPKG_ROOT: ${{github.workspace}}/vcpkg
jobs:
build:
name: "Build on macOS"
runs-on: macos-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
submodules: recursive
- name: "Setup Environment"
run: |
mkdir build
brew install python-setuptools sqlcipher
- name: "Vcpkg"
uses: johnwason/vcpkg-action@v7
id: vcpkg
with:
pkgs: boost-json cpr gettext-libintl glib gtest maddy
triplet: arm64-osx
revision: 4103f46cb1ebb69ef5511cab840ecea0f441fbd7
token: ${{ github.token }}
cache-key: "arm64-osx-4103f46cb1ebb69ef5511cab840ecea0f441fbd7"
- name: "Build"
working-directory: ${{github.workspace}}/build
run: |
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install
cmake --build .
- name: "Install"
working-directory: ${{github.workspace}}/build
run: cmake --install .
- name: "Test"
run: ${{github.workspace}}/build/libnick_test
- name: Upload
uses: actions/upload-artifact@v4
with:
path: ${{github.workspace}}/install
name: macOS-arm64-Release