Skip to content

updated to latest

updated to latest #10

Workflow file for this run

name: CI
on:
push:
branches:
- main
- develop
paths-ignore:
- '**.md'
- 'LICENSE'
- '.gitignore'
pull_request:
branches:
- main
- develop
paths-ignore:
- '**.md'
- 'LICENSE'
- '.gitignore'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-macos:
name: Build & Test (macOS)
runs-on: macos-26
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Restore Cache (exact)
id: spm-cache-exact
uses: actions/cache/restore@v4
with:
path: |
~/Library/Developer/Xcode/DerivedData
~/Library/Caches/org.swift.swiftpm
.build
key: spm-build-cache-${{ runner.os }}-${{ github.ref_name }}-${{ github.sha }}
- name: Restore Cache (fallback)
if: steps.spm-cache-exact.outputs.cache-hit != 'true'
id: spm-cache-fallback
uses: actions/cache/restore@v4
with:
path: |
~/Library/Developer/Xcode/DerivedData
~/Library/Caches/org.swift.swiftpm
.build
key: spm-build-cache-${{ runner.os }}-${{ github.ref_name }}-
restore-keys: |
spm-build-cache-${{ runner.os }}-
- name: Pre-populate Binary Artifacts
run: |
ARTIFACTS_DIR="$HOME/Library/Caches/org.swift.swiftpm/artifacts"
mkdir -p "$ARTIFACTS_DIR"
OPENSSL_FILE="$ARTIFACTS_DIR/https___github_com_krzyzanowskim_OpenSSL_releases_download_3_6_2000_OpenSSL_xcframework_zip"
if [ ! -f "$OPENSSL_FILE" ]; then
curl -fsSL "https://github.com/krzyzanowskim/OpenSSL/releases/download/3.6.2000/OpenSSL.xcframework.zip" -o "$OPENSSL_FILE"
fi
UNICORN_FILE="$ARTIFACTS_DIR/https___github_com_mahee96_unicorn_releases_download_2_1_4_xcf_37ffdfb1_Unicorn_xcframework_zip"
if [ ! -f "$UNICORN_FILE" ]; then
curl -fsSL "https://github.com/mahee96/unicorn/releases/download/2.1.4-xcf-37ffdfb1/Unicorn.xcframework.zip" -o "$UNICORN_FILE"
fi
- name: Build SideSign Library & CLI
run: swift build -c release --product sidesign
- name: Run Tests
run: swift test
- name: Save Cache
if: steps.spm-cache-exact.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: |
~/Library/Developer/Xcode/DerivedData
~/Library/Caches/org.swift.swiftpm
.build
key: spm-build-cache-${{ runner.os }}-${{ github.ref_name }}-${{ github.sha }}