Skip to content

decrease size of candles(to decrease time of loading) #556

decrease size of candles(to decrease time of loading)

decrease size of candles(to decrease time of loading) #556

Workflow file for this run

name: "CI"
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: write
jobs:
test:
name: Test
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Fetch dep
run: gradle fetchDependencies
- name: Test
run: xcodebuild test -project DxFeedFramework.xcodeproj -scheme DXFeedFramework -testPlan DXExceptPublisherTests -destination 'platform=macOS'
release:
if: (startsWith(github.event.ref, 'refs/tags/') && endsWith(github.event.ref, 'build'))
name: Release
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Fetch dep
run: gradle fetchDependencies
- name: Build Archive
run: xcodebuild build -project DxFeedFramework.xcodeproj -scheme XCFramework
- name: Build Tools
run: xcodebuild -project DxFeedFramework.xcodeproj -scheme Tools -archivePath build/tools archive
- name: Check Signature
run: codesign -d -v build/tools.xcarchive/Products/usr/local/bin/Tools
- name: Zip Tools
run: cd build/tools.xcarchive; zip ../../tools.zip Products -r; cd -
- name: Build Documentations
run: xcodebuild docbuild -scheme DXFeedFramework -derivedDataPath documentations/
- name: Zip Documentations
run: cd documentations/Build/Products/Debug; zip ../../../../documentation.zip DXFeedFramework.doccarchive -r; cd -
- name: Check file
run: ls -al release_sp.sh
- name: Calculate package checksum
run: ./release_sp.sh ${{ github.ref_name }} DXFeedFramework
shell: sh
- name: Commit spm update
run: |
git config --local user.name "GitHub Action"
git commit Package.swift -m "Update Package.swift"
- name: Push to swift branch. Update swift package.
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: swift
- name: Create tag for SPM
run: |
echo ${{ github.ref_name }}
export TAG_NAME=`echo ${{ github.ref_name }} | sed 's/_build//'`
echo $TAG_NAME
git tag ${TAG_NAME}
git push origin ${TAG_NAME}
- name: Upload Archive and Documentations
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
build/DXFeedFramework.zip
documentation.zip
tools.zip
token: ${{ secrets.GITHUB_TOKEN }}
build_and_upload_docs:
needs: release
if: (startsWith(github.event.ref, 'refs/tags/') && endsWith(github.event.ref, 'build'))
name: Build & Upload Docs
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Fetch dep
run: gradle fetchDependencies
- name: Create HTML Docs
run: ./build_doc.sh ${GITHUB_REPOSITORY#$GITHUB_REPOSITORY_OWNER/}
shell: sh
- name: Upload Doc
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: help
commit_message: 'deploy: ${{ github.ref_name }}'
allow_empty_commit: true