Skip to content

Commit cef5c3d

Browse files
xwovrrpavlik
authored andcommitted
further refactoring
1 parent 567292b commit cef5c3d

File tree

2 files changed

+10
-17
lines changed

2 files changed

+10
-17
lines changed

.github/workflows/macos-build-preset.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,54 +4,49 @@
44
name: macOS builds
55
on:
66
workflow_call:
7-
# inputs:
8-
# organizeAndRelease:
9-
# description: "Should we organize and release our artifacts?"
10-
# type: boolean
11-
# default: false
127
workflow_dispatch:
138

149
jobs:
1510
build-macos:
1611
runs-on: macos-latest
1712

1813
steps:
19-
# Step 1: Checkout the repository
2014
- name: Checkout Repository
2115
uses: actions/checkout@v4
2216

23-
# Step 2: Set up Homebrew and install dependencies
2417
- name: Install Dependencies
2518
run: |
2619
brew update
2720
brew install cmake ninja
2821
# Add any additional dependencies here
2922
30-
# Step 3: Configure the build with CMake
3123
- name: Configure Build
3224
run: |
3325
mkdir build
3426
cd build
3527
cmake -G Ninja \
3628
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
29+
-DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" \
3730
-DCMAKE_INSTALL_PREFIX=../install \
3831
..
3932
40-
# Step 4: Build the project
4133
- name: Build OpenXR Loader
4234
run: |
4335
cd build
4436
cmake --build . --target install
4537
46-
# Step 5: Package the build artifacts
38+
- name: Add a note about the Quarantine flag
39+
run: |
40+
cd install
41+
echo "After unzipping the package, run 'xattr -d com.apple.quarantine lib/libopenxr_loader.dylib' to allow using the pre-built loader on macOS computers" > README.md
42+
4743
- name: Package Artifacts
4844
run: |
4945
cd install
50-
tar -czvf OpenXR-Loader-macos-package.tar.gz *
46+
tar -czvf openxr_loader_macos.tar.gz *
5147
52-
# Step 6: Upload the build artifacts
5348
- name: Upload Artifact
5449
uses: actions/upload-artifact@v4
5550
with:
56-
name: OpenXR-Loader-macos-package
57-
path: install/OpenXR-Loader-macos-package.tar.gz
51+
name: openxr_loader_macos
52+
path: install/openxr_loader_macos.tar.gz

.github/workflows/release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,4 @@ jobs:
2020
organizeAndRelease: true
2121

2222
macos-build:
23-
uses: ./.github/workflows/macos-build-preset.yml
24-
# with:
25-
# organizeAndRelease: true
23+
uses: ./.github/workflows/macos-build-preset.yml

0 commit comments

Comments
 (0)