Skip to content

add ipf connection state in sample app #86

add ipf connection state in sample app

add ipf connection state in sample app #86

Workflow file for this run

name: "Build & Test & Release"
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: write
jobs:
# build_and_test:
# name: Build & Test
# runs-on: macos-latest
# strategy:
# matrix:
# include:
# - os: macos-latest
# OS_NAME: osx-x64
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: List
# run: xcodebuild -project DxFeedFramework.xcodeproj -list
# - name: Fetch dep
# run: gradle fetchDependencies
# - name: Build Archive
# run: xcodebuild build -project DxFeedFramework.xcodeproj -scheme XCFramework
# - name: Test
# run: xcodebuild test -project DxFeedFramework.xcodeproj -scheme DXFeedFramework
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@v3
- name: Fetch dep
run: gradle fetchDependencies
- name: Build Archive
run: xcodebuild build -project DxFeedFramework.xcodeproj -scheme XCFramework
- name: Build Documentations
run: xcodebuild docbuild -scheme DXFeedFramework -derivedDataPath documentations/
- name: Zip Documentations
run: zip documentation.zip documentations/Build/Products/Debug/DXFeedFramework.doccarchive -r
- name: Checkl file
run: ls -al release_sp.sh
- name: Calculate package checksum
run: ./release_sp.sh ${{ github.ref_name }} DXFeedFramework
shell: sh
- name: Commit files
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
token: ${{ secrets.GITHUB_TOKEN }}