Skip to content

Commit

Permalink
further refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
xwovr authored and rpavlik committed Jan 29, 2025
1 parent 567292b commit cef5c3d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/macos-build-preset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,54 +4,49 @@
name: macOS builds
on:
workflow_call:
# inputs:
# organizeAndRelease:
# description: "Should we organize and release our artifacts?"
# type: boolean
# default: false
workflow_dispatch:

jobs:
build-macos:
runs-on: macos-latest

steps:
# Step 1: Checkout the repository
- name: Checkout Repository
uses: actions/checkout@v4

# Step 2: Set up Homebrew and install dependencies
- name: Install Dependencies
run: |
brew update
brew install cmake ninja
# Add any additional dependencies here
# Step 3: Configure the build with CMake
- name: Configure Build
run: |
mkdir build
cd build
cmake -G Ninja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" \
-DCMAKE_INSTALL_PREFIX=../install \
..
# Step 4: Build the project
- name: Build OpenXR Loader
run: |
cd build
cmake --build . --target install
# Step 5: Package the build artifacts
- name: Add a note about the Quarantine flag
run: |
cd install
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
- name: Package Artifacts
run: |
cd install
tar -czvf OpenXR-Loader-macos-package.tar.gz *
tar -czvf openxr_loader_macos.tar.gz *
# Step 6: Upload the build artifacts
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: OpenXR-Loader-macos-package
path: install/OpenXR-Loader-macos-package.tar.gz
name: openxr_loader_macos
path: install/openxr_loader_macos.tar.gz
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,4 @@ jobs:
organizeAndRelease: true

macos-build:
uses: ./.github/workflows/macos-build-preset.yml
# with:
# organizeAndRelease: true
uses: ./.github/workflows/macos-build-preset.yml

0 comments on commit cef5c3d

Please sign in to comment.