Simplye 224 digital magazine #30
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: Unit Tests | |
on: [ pull_request, workflow_dispatch ] | |
jobs: | |
build-and-test: | |
runs-on: macOS-13 | |
steps: | |
- name: Force Xcode 15 | |
run: sudo xcode-select -switch /Applications/Xcode_15.0.1.app | |
- name: Checkout main repo and submodules | |
uses: actions/checkout@v3 | |
- name: Set up repo for nonDRM build | |
run: exec ./scripts/setup-repo-nodrm-github.sh | |
env: | |
BUILD_CONTEXT: ci | |
# with: | |
# submodules: true | |
# token: ${{ secrets.CI_GITHUB_ACCESS_TOKEN }} | |
# - name: Checkout Certificates | |
# uses: actions/checkout@v3 | |
# with: | |
# repository: ThePalaceProject/mobile-certificates | |
# token: ${{ secrets.CI_GITHUB_ACCESS_TOKEN }} | |
# path: ./mobile-certificates | |
# - name: Checkout Adobe RMSDK | |
# uses: actions/checkout@v3 | |
# with: | |
# repository: ThePalaceProject/mobile-drm-adeptconnector | |
# token: ${{ secrets.CI_GITHUB_ACCESS_TOKEN }} | |
# path: ./mobile-drm-adeptconnector | |
# - name: Uncompress Adobe RMSDK | |
# run: ./scripts/setup-repo-drm.sh | |
# env: | |
# BUILD_CONTEXT: ci | |
- name: Build non-Carthage 3rd party dependencies | |
run: ./scripts/build-3rd-party-dependencies.sh --no-private | |
env: | |
BUILD_CONTEXT: ci | |
- name: Build Palace without DRM support | |
run: ./scripts/xcode-build-nodrm.sh | |
env: | |
BUILD_CONTEXT: ci | |
- name: Run Palace unit tests | |
run: ./scripts/xcode-test.sh | |
env: | |
BUILD_CONTEXT: ci |