[Core] use stormkit makeUnique instead of std::make_unique #328
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: macOS | |
on: | |
pull_request: | |
branches: [main, develop] | |
paths-ignore: | |
- .github/workflows/Linux.yml | |
- .github/workflows/Windows-LLVM.yml | |
- .github/workflows/Windows-MSVC.yml | |
- .github/workflows/iOS.yml | |
- .github/workflows/Android.yml | |
- .github/workflows/AutoMerger.yml | |
- .gitignore | |
- LICENSE | |
- README.md | |
push: | |
branches: [develop] | |
paths-ignore: | |
- .github/workflows/Windows-LLVM.yml | |
- .github/workflows/Windows-MSVC.yml | |
- .github/workflows/Linux.yml | |
- .github/workflows/iOS.yml | |
- .github/workflows/Android.yml | |
- .github/workflows/AutoMerger.yml | |
- .gitignore | |
- LICENSE | |
- README.md | |
jobs: | |
build: | |
name: ${{ matrix.os }}-${{ matrix.arch }} (${{ matrix.kind }}-${{ matrix.mode }}) | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macOS-15] | |
arch: [x64, arm64] | |
kind: [static, shared] | |
mode: [release, debug] | |
runs-on: ${{ matrix.os }}${{ (matrix.arch == 'x64') && '-large' || '' }} | |
concurrency: | |
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.kind | |
}}-${{ matrix.mode }} | |
steps: | |
- name: Get current date as package key | |
id: cache_key | |
run: echo "key=$(date +'%W')" >> $GITHUB_OUTPUT | |
shell: bash | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: tecolicom/actions-use-homebrew-tools@v1 | |
with: | |
tools: llvm | |
- name: AAAAAAAAAAAAAAAAAAAAA | |
run: | | |
ls /opt/homebrew/opt/llvm/lib | |
/opt/homebrew/opt/llvm/bin/clang --version | |
- name: Set xmake env | |
run: echo "XMAKE_GLOBALDIR=${{ runner.workspace }}/xmake-global" >> $GITHUB_ENV | |
shell: bash | |
- name: Setup XMake | |
uses: xmake-io/github-action-setup-xmake@v1 | |
with: | |
xmake-version: Arthapz/xmake#branch@fix-xlinker-rpath-deduplication | |
actions-cache-folder: .xmake-cache${{ steps.cache_key.outputs.key }} | |
- name: Update xmake repository | |
run: xmake repo --update | |
- name: Retrieve dependencies hash | |
id: dep_hash | |
run: echo "hash=$(xmake l utils.ci.packageskey)" >> $GITHUB_OUTPUT | |
shell: bash | |
- name: Retrieve cached xmake dependencies | |
id: restore-depcache | |
uses: actions/cache/restore@v4 | |
with: | |
path: ${{ env.XMAKE_GLOBALDIR }}/.xmake/packages | |
key: ${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.mode }}-${{ steps.dep_hash.outputs.hash }}-${{ steps.cache_key.outputs.key | |
}} | |
- name: Configure & Install dependencies | |
id: configure | |
run: | | |
xmake f -v --yes -m ${{ (matrix.mode == 'release' || matrix.mode == 'debug') && matrix.mode || 'releasedbg' }} -k ${{ matrix.kind }} --sanitizers=${{ matrix.mode == 'debug' && 'y' || 'n' }} --examples=y --tests=y --engine=n --toolchain=llvm --sdk="$(brew --prefix)/opt/llvm/" --runtimes="c++_shared" | |
- name: Save cached xmake dependencies | |
if: ${{ !steps.restore-depcache.outputs.cache-hit }} | |
uses: actions/cache/save@v4 | |
with: | |
path: ${{ env.XMAKE_GLOBALDIR }}/.xmake/packages | |
key: ${{ steps.restore-depcache.outputs.cache-primary-key }} | |
- name: Build | |
id: build | |
run: | | |
xmake b -v | |
- name: Run unit tests | |
run: xmake test -v | |
- name: Installation | |
run: xmake install -v --installdir="${{ runner.workspace }}/output" | |
- name: Upload artifacts | |
id: upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: macOS-x64-${{ matrix.kind }}-${{ matrix.mode }} | |
path: ${{ runner.workspace }}/output |