feat(websockets): visionOS and catalyst support #51
Workflow file for this run
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: Lint and Build (PR) | |
env: | |
NX_BRANCH: ${{ github.event.number || github.ref_name }} | |
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
on: | |
push: | |
branches: ['master'] | |
pull_request: | |
branches: ['master'] | |
jobs: | |
lint: | |
name: Lint affected projects | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
cache: 'yarn' | |
- uses: nrwl/nx-set-shas@v2 | |
with: | |
main-branch-name: 'master' | |
- name: yarn install | |
run: yarn --immutable | |
- name: Lint affected | |
run: yarn nx affected:lint | |
build: | |
name: Build affected projects | |
needs: lint | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
cache: 'yarn' | |
- uses: nrwl/nx-set-shas@v2 | |
with: | |
main-branch-name: 'master' | |
- name: Xcode Select Version | |
# see available xcode versions in https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md#xcode | |
uses: mobiledevops/xcode-select-version-action@v1 | |
with: | |
xcode-select-version: 15.4 | |
- name: Install visionOS platform | |
run: | | |
defaults write com.apple.dt.Xcode AllowUnsupportedVisionOSHost -bool YES | |
defaults write com.apple.CoreSimulator AllowUnsupportedVisionOSHost -bool YES | |
xcodebuild -downloadPlatform visionOS | |
- name: yarn install | |
run: yarn --immutable | |
- name: Build.all affected | |
run: yarn nx affected --target=build.all |