Merge pull request #52 from loganblevins/lgb/visionOS-support #52
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: CI main | |
on: | |
push: | |
branches: | |
- 'main' | |
tags-ignore: | |
- '**' | |
jobs: | |
release: | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
clean: 'true' | |
fetch-depth: 0 | |
- name: Install GitVersion | |
uses: gittools/actions/gitversion/[email protected] | |
with: | |
versionSpec: '5.x' | |
- name: Determine Version | |
id: gitversion | |
uses: gittools/actions/gitversion/[email protected] | |
with: | |
useConfigFile: true | |
configFilePath: ./.github/gitversion.yml | |
- name: Select Xcode | |
run: sudo xcode-select -switch /Applications/Xcode_15.2.app | |
- name: Run Unit Test | |
run: ./Scripts/runTest.sh | |
- name: Build Framework | |
run: ./Scripts/build.sh | |
- name: Create arhive framework | |
run: zip -r GrowthBook.xcframework.zip "./build/GrowthBook.xcframework" "./LICENSE" | |
- name: release | |
uses: actions/create-release@v1 | |
id: create_release | |
with: | |
draft: false | |
prerelease: false | |
release_name: ${{ steps.gitversion.outputs.SemVer }} | |
tag_name: ${{ steps.gitversion.outputs.SemVer }} | |
body: ${{ github.event.head_commit.message }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload binary | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./GrowthBook.xcframework.zip | |
asset_name: GrowthBook.xcframework.zip | |
asset_content_type: application/zip |