Skip to content

Runtime osx-arm64

Runtime osx-arm64 #11

# SPDX-FileCopyrightText: 2024 Frans van Dorsselaer
#
# SPDX-License-Identifier: MIT
# This file requires LF line endings, as it is used in GitHub action hashes.
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
# This file requires LF line endings, as it is used in cross-platform GitHub action hashes.
name: Runtime osx-arm64
on:
workflow_dispatch:
workflow_call:
env:
RUNTIME: osx-arm64
permissions:
contents: read
actions: write
jobs:
build-osx-arm64:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure
run: >
cmake
-S xmss-library
-B build
-DBUILD_SHARED_LIBS=ON
-DXMSS_C99_COMPATIBLE=OFF
-DCMAKE_C_COMPILER=clang
-DCMAKE_C_FLAGS="-Wno-error=implicit-int-conversion"
- name: Build
run: cmake --build build
- name: Test
working-directory: build
run: ctest
- name: Copy artifact
run: |
mkdir -p "Xmss/runtimes/${{ env.RUNTIME }}/native"
cp build/src/libxmss.dylib "Xmss/runtimes/${{ env.RUNTIME }}/native/xmss.dylib"
- name: Save runtime cache
id: save-runtime-cache
uses: ./.github/actions/save-runtime-cache
with:
runtime: osx-arm64