Skip to content

Commit

Permalink
Update GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
waliid committed Dec 3, 2024
1 parent 517cae9 commit 284742c
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 47 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nightlies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Nightlies

on: # yamllint disable-line rule:truthy
push:
branches: [main]
branches: main

jobs:
deliver-demo-nightlies:
Expand Down
86 changes: 43 additions & 43 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,25 @@ name: Pull Request
on: push # yamllint disable-line rule:truthy

jobs:
# check-quality:
# name: "🔎 Check quality"
# runs-on: macos-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
check-quality:
name: "🔎 Check quality"
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

# - name: Run the quality check
# run: make check-quality
- name: Run the quality check
run: make check-quality

# build-documentation:
# name: "📚 Build documentation"
# runs-on: macos-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
build-documentation:
name: "📚 Build documentation"
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

# - name: Build the documentation
# run: make doc
- name: Build the documentation
run: make doc

tests:
name: "🧪 Tests"
Expand All @@ -37,33 +37,33 @@ jobs:
- name: Run tests
run: make test-${{ matrix.platform }}

# archive-demos:
# name: "📦 Archives"
# runs-on: macos-latest
# strategy:
# matrix:
# platform: [ios, tvos]
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
archive-demos:
name: "📦 Archives"
runs-on: macos-latest
strategy:
matrix:
platform: [ios, tvos]
steps:
- name: Checkout code
uses: actions/checkout@v4

# - name: Add Apple certificate
# run: |
# Scripts/add-apple-certificate.sh \
# $RUNNER_TEMP \
# ${{ secrets.KEYCHAIN_PASSWORD }} \
# ${{ secrets.APPLE_DEV_CERTIFICATE }} \
# ${{ secrets.APPLE_DEV_CERTIFICATE_PASSWORD }}
- name: Add Apple certificate
run: |
Scripts/add-apple-certificate.sh \
$RUNNER_TEMP \
${{ secrets.KEYCHAIN_PASSWORD }} \
${{ secrets.APPLE_DEV_CERTIFICATE }} \
${{ secrets.APPLE_DEV_CERTIFICATE_PASSWORD }}
# - name: Configure environment
# run: |
# Scripts/configure-environment.sh \
# ${{ secrets.APP_STORE_CONNECT_API_KEY }}
- name: Configure environment
run: |
Scripts/configure-environment.sh \
${{ secrets.APP_STORE_CONNECT_API_KEY }}
# - name: Archive the demo
# run: make archive-demo-${{ matrix.platform }}
# env:
# TEAM_ID: ${{ secrets.TEAM_ID }}
# KEY_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ID }}
# KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ISSUER_ID }}
# TESTFLIGHT_GROUPS: ${{ vars.TESTFLIGHT_GROUPS }}
- name: Archive the demo
run: make archive-demo-${{ matrix.platform }}
env:
TEAM_ID: ${{ secrets.TEAM_ID }}
KEY_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ID }}
KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ISSUER_ID }}
TESTFLIGHT_GROUPS: ${{ vars.TESTFLIGHT_GROUPS }}
4 changes: 2 additions & 2 deletions .github/workflows/releases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Releases

on: # yamllint disable-line rule:truthy
push:
tags:
- '*'
branches: main
tags: '*'

jobs:
deliver-demo-releases:
Expand Down
3 changes: 2 additions & 1 deletion Demo/Sources/Model/URLMedia.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ enum URLMedia {
timeRanges: [
.init(kind: .blocked, start: .zero, end: .init(value: 300, timescale: 1)),
.init(kind: .blocked, start: .init(value: 600, timescale: 1), end: .init(value: 900, timescale: 1)),
.init(kind: .blocked, start: .init(value: 700, timescale: 1), end: .init(value: 1200, timescale: 1))
.init(kind: .blocked, start: .init(value: 700, timescale: 1), end: .init(value: 1200, timescale: 1)),
.init(kind: .blocked, start: .init(value: 1500, timescale: 1), end: .init(value: 1800, timescale: 1))
]
)
static let appleBasic_4_3_HLS = Media(
Expand Down

0 comments on commit 284742c

Please sign in to comment.