Skip to content

Commit 2fa50ec

Browse files
committed
Add back workflow lost in release process.
1 parent d7d6ff8 commit 2fa50ec

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.github/workflows/build-macos.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Copyright 2021-2024, Collabora, Ltd.
2+
# SPDX-License-Identifier: CC0-1.0
3+
4+
name: macOS builds
5+
on:
6+
workflow_call:
7+
inputs:
8+
organizeAndRelease:
9+
description: "Should we organize and release our artifacts?"
10+
type: boolean
11+
default: false
12+
workflow_dispatch:
13+
14+
jobs:
15+
build-macos:
16+
runs-on: macos-latest
17+
18+
steps:
19+
# Step 1: Checkout the repository
20+
- name: Checkout Repository
21+
uses: actions/checkout@v3
22+
23+
# Step 2: Set up Homebrew and install dependencies
24+
- name: Install Dependencies
25+
run: |
26+
brew update
27+
brew install cmake ninja
28+
# Add any additional dependencies here
29+
30+
# Step 3: Configure the build with CMake
31+
- name: Configure Build
32+
run: |
33+
mkdir build
34+
cd build
35+
cmake -G Ninja \
36+
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
37+
-DCMAKE_INSTALL_PREFIX=../install \
38+
..
39+
40+
# Step 4: Build the project
41+
- name: Build OpenXR Loader
42+
run: |
43+
cd build
44+
cmake --build . --target install
45+
46+
# Step 5: Package the build artifacts
47+
- name: Package Artifacts
48+
run: |
49+
cd install
50+
tar -czvf OpenXR-Loader-macos-${GITHUB_REF#refs/tags/}.tar.gz *
51+
52+
# Step 6: Upload the build artifacts
53+
- name: Upload Artifact
54+
uses: actions/upload-artifact@v3
55+
with:
56+
name: OpenXR-Loader-macos-${GITHUB_REF#refs/tags/}
57+
path: install/OpenXR-Loader-macos-${GITHUB_REF#refs/tags/}.tar.gz

0 commit comments

Comments
 (0)