Skip to content

Problem: missing universal library for mac arm64, x86_64 (fix #460) #18

Problem: missing universal library for mac arm64, x86_64 (fix #460)

Problem: missing universal library for mac arm64, x86_64 (fix #460) #18

Workflow file for this run

name: Mac Arm64 Build CI
on:
push:
branches-ignore:
- main
paths-ignore:
- README.md
tags:
- "v*.*.*"
merge_group:
pull_request:
paths-ignore:
- README.md
jobs:
mac-build:
runs-on: macos-12
env:
MACOSX_DEPLOYMENT_TARGET: 10.15
USE_ARM64: true
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Build play-cpp-sdk library
run: make
- name: Pack binaries and bindings
run: |
PLATFORM="$(uname -s)_arm64"
BUILD_TYPE="tarball"
mkdir -p install
cp -r demo/sdk install
cp ./LICENSE install/sdk
cp ./CHANGELOG.md install/sdk
cd install
tar zcvf ../play_cpp_sdk_${PLATFORM}.tar.gz *
cd ..
shasum -a 256 *.tar.gz > "checksums-$PLATFORM.txt"
echo "release_file=play_cpp_sdk_$PLATFORM.tar.gz" >> $GITHUB_ENV
echo "checksum_file=checksums-$PLATFORM.txt" >> $GITHUB_ENV
cat $GITHUB_ENV
- name: Upload binaries and bindings to Release
uses: softprops/action-gh-release@v1
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
with:
draft: true
files: |
${{ env.release_file }}
${{ env.checksum_file }}