Skip to content

Commit

Permalink
Pull request #3: Feature/MDAPI-23 swift candlewebservice api sample
Browse files Browse the repository at this point in the history
Merge in MDAPI/dxfeed-graal-swift-api from feature/MDAPI-23-swift-candlewebservice-api-sample to master

Squashed commit of the following:

commit c35f29049f90f98a560b7fd24e03e308bd7a85f2
Author: Aleksey Kosylo <[email protected]>
Date:   Wed Jul 3 14:27:13 2024 +0200

    update gh pages every tag

commit e72637e30a51dde5ebb1cfaa063793b641522eca
Author: Aleksey Kosylo <[email protected]>
Date:   Wed Jul 3 10:09:36 2024 +0200

    test commit

commit cf185554a754ab44aa9998b83e77658dcdec228e
Author: Aleksey Kosylo <[email protected]>
Date:   Wed Jul 3 09:26:43 2024 +0200

    [MDAPI-23] CandleWebServiceExample:
    fix after PR

commit d190318a4323621b5d636e8c63cfcf313fbcc10c
Author: Aleksey Kosylo <[email protected]>
Date:   Wed Jul 3 08:44:45 2024 +0200

    [MDAPI-23] CandleWebServiceExample:
    fix after PR

commit 71845273036b7e5e74f845914406ccf426ba45c1
Author: Aleksey Kosylo <[email protected]>
Date:   Tue Jul 2 17:55:15 2024 +0200

    test commit

commit 4b71f72eb0ba29ad493d10b79240da2ab46088e3
Author: Aleksey Kosylo <[email protected]>
Date:   Tue Jul 2 17:29:31 2024 +0200

    test commit

commit 4abea1b799e1a67901882f64de5a059caeeace42
Author: Aleksey Kosylo <[email protected]>
Date:   Tue Jul 2 17:22:17 2024 +0200

    test commit

commit 4dfac6c98ff602dd1e0b92f5963f2533579c10c7
Author: Aleksey Kosylo <[email protected]>
Date:   Tue Jul 2 17:03:56 2024 +0200

    test commit

commit 8d29c171ed9e5fe2c6f37812b1448dd15b18c5dc
Author: Aleksey Kosylo <[email protected]>
Date:   Tue Jul 2 16:53:57 2024 +0200

    test comit

commit 94a3512537ec27896093d183676242e5c42ea824
Author: Aleksey Kosylo <[email protected]>
Date:   Tue Jul 2 16:47:12 2024 +0200

    test commit for merge checker

commit 060445d3502d758af995489b018fac58af6464a8
Author: Aleksey Kosylo <[email protected]>
Date:   Tue Jul 2 14:29:34 2024 +0200

    update path for binary

commit 3c8630b3587d702f96525a6172acc334ef5bf186
Author: Aleksey Kosylo <[email protected]>
Date:   Tue Jul 2 13:13:21 2024 +0200

    test  commit

commit 366131cd3c75d9abb36b409a2cbfcfb4131d5645
Author: Aleksey Kosylo <[email protected]>
Date:   Tue Jul 2 11:20:32 2024 +0200

    add gradlew

commit b22a2ff3c9c784e67217f97dcece33b0a2539e8f
Author: Aleksey Kosylo <[email protected]>
Date:   Tue Jul 2 09:44:06 2024 +0200

    test commit

commit 85ef5d4497d0e8860071eed62c736fc5976f7c0f
Author: Aleksey Kosylo <[email protected]>
Date:   Tue Jul 2 09:36:53 2024 +0200

    test commit

commit 1ec2f8a2b0f050e3e4b058d61d2af8f5ba425ccb
Author: Aleksey Kosylo <[email protected]>
Date:   Tue Jul 2 09:26:20 2024 +0200

    test commit

commit c43bebcd633e7d9dbe6bcc93babb5efb5714cd87
Author: Aleksey Kosylo <[email protected]>
Date:   Tue Jul 2 08:54:36 2024 +0200

    except test with demo connection

commit f81cb47ca92488f980324a8702a9f4ab230340a2
Author: Aleksey Kosylo <[email protected]>
Date:   Mon Jul 1 17:47:57 2024 +0200

    update comment. just test

commit 8e4a97c3e54e414e5b913a79bf7404f8191afdd4
Author: Aleksey Kosylo <[email protected]>
Date:   Mon Jul 1 15:29:03 2024 +0200

    add shell script for calculation checksum and update Package.swift file

commit ff7e10493fa542b9d5bd551e8317d8fa6bc73926
Author: Aleksey Kosylo <[email protected]>
Date:   Mon Jul 1 15:12:04 2024 +0200

    add shell script for calculation checksum and update Package.swift file

... and 3 more commits
  • Loading branch information
kosyloa committed Jul 9, 2024
1 parent 8745ef8 commit db6bd22
Show file tree
Hide file tree
Showing 24 changed files with 1,042 additions and 101 deletions.
82 changes: 0 additions & 82 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,89 +9,7 @@ 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
Expand Down
6 changes: 3 additions & 3 deletions Package.swift → .spm_jrog/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

import PackageDescription

let version = "1.1.3_build"
let version = "0.0.77"
let moduleName = "DXFeedFramework"
let checksum = "0529710169a58beb75042eb53f715ce529d88d01d05c03d57dde61fcc87bf1f5"
let checksum = "39f0525aa272ea7903d0e860bad4bcfa16ceee6ac474cfb28a2fea3290387e66"

let package = Package(
name: moduleName,
Expand All @@ -18,7 +18,7 @@ let package = Package(
targets: [
.binaryTarget(
name: moduleName,
url: "https://github.com/dxFeed/dxfeed-graal-swift-api/releases/download/\(version)/\(moduleName).zip",
url: "https://dxfeed.jfrog.io/artifactory/dxfeed-graal-open/binary/dxfeed-xcframework/dxfeed-xcframework-\(version).zip",
checksum: checksum
)
]
Expand Down
2 changes: 1 addition & 1 deletion release_sp.sh → .spm_jrog/release_sp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ FRAMEWORK_NAME=$2

# 2. Calculate checksum and store it
echo "calculate new checksum"
NEW_CHECKSUM=$(swift package compute-checksum build/$FRAMEWORK_NAME.zip)
NEW_CHECKSUM=$(swift package compute-checksum ../build/$FRAMEWORK_NAME.zip)
echo "print out new shasum for convenience reasons"
echo "New checksum is $NEW_CHECKSUM"

Expand Down
Loading

0 comments on commit db6bd22

Please sign in to comment.