Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Arqu committed Sep 19, 2024
1 parent 28300fd commit fd748a8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 67 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
contents: write
pull-requests: write

env:
IROH_FORCE_STAGING_RELAYS: "1"

Expand Down Expand Up @@ -177,41 +173,3 @@ jobs:
TEST_OS: ${{ matrix.os }}
shell: bash
run: ./test_kotlin.sh


build-and-publish-swift-test:
name: Build & publish swift libraries
timeout-minutes: 30
runs-on: [macOS, ARM64]
env:
RELEASE_VERSION: "v0.25.1"
steps:
- uses: actions/checkout@master
- uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-apple-ios,aarch64-apple-ios-sim,x86_64-apple-ios,aarch64-apple-darwin
- name: Make swift
run: |
./make_swift.sh
zip -r IrohLib.xcframework.zip Iroh.xcframework/*
- name: Prep package details
run: |
zip -r IrohLib.xcframework.zip Iroh.xcframework/*
CHKSUM=$(swift package compute-checksum IrohLib.xcframework.zip)
TAGNAME=${{env.RELEASE_VERSION}}
VNUM=${TAGNAME#v}
# update IrohLib.podspec version
sed -i '' "s/spec.version = \".*\"/spec.version = \"$VNUM\"/" "IrohLib.podspec"
# update IrohLibFramework.podspec version
sed -i '' "s/spec.version = \".*\"/spec.version = \"$VNUM\"/" "IrohLibFramework.podspec"
# update Package.swift
sed -i '' "s|https://github.com/n0-computer/iroh-ffi/releases/download/v[0-9]*\.[0-9]*\.[0-9]*/IrohLib.xcframework.zip|https://github.com/n0-computer/iroh-ffi/releases/download/${TAGNAME}/IrohLib.xcframework.zip|" "Package.swift"
sed -i '' "s/checksum: \".*\"/checksum: \"$CHKSUM\"/" "Package.swift"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
commit-message: "chore: update swift package version to ${{env.RELEASE_VERSION}}"
branch: "bot/update-swift-package-${{env.RELEASE_VERSION}}"
title: "chore: update swift package version to ${{env.RELEASE_VERSION}}"
base: main
25 changes: 0 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ on:
tags:
- "v*"

permissions:
contents: write
pull-requests: write

env:
LIB_NAME: libiroh_ffi
PACKAGE_NAME: libiroh
Expand Down Expand Up @@ -161,27 +157,6 @@ jobs:
asset_path: IrohLib.xcframework.zip
asset_name: IrohLib.xcframework.zip
asset_content_type: application/octet-stream
- name: Prep package details
run: |
zip -r IrohLib.xcframework.zip Iroh.xcframework/*
CHKSUM=$(swift package compute-checksum IrohLib.xcframework.zip)
TAGNAME=${{needs.create-release.outputs.release_version}}
VNUM=${TAGNAME#v}
# update IrohLib.podspec version
sed -i '' "s/spec.version = \".*\"/spec.version = \"$VNUM\"/" "IrohLib.podspec"
# update IrohLibFramework.podspec version
sed -i '' "s/spec.version = \".*\"/spec.version = \"$VNUM\"/" "IrohLibFramework.podspec"
# update Package.swift
sed -i '' "s|https://github.com/n0-computer/iroh-ffi/releases/download/v[0-9]*\.[0-9]*\.[0-9]*/IrohLib.xcframework.zip|https://github.com/n0-computer/iroh-ffi/releases/download/${TAGNAME}/IrohLib.xcframework.zip|" "Package.swift"
sed -i '' "s/checksum: \".*\"/checksum: \"$CHKSUM\"/" "Package.swift"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
commit-message: "chore: update swift package version to ${{needs.create-release.outputs.release_version}}"
branch: "bot/update-swift-package-${{needs.create-release.outputs.release_version}}"
title: "chore: update swift package version to ${{needs.create-release.outputs.release_version}}"
base: main

build-and-publish-kotlin:
name: Build & publish kotlin libraries
Expand Down

0 comments on commit fd748a8

Please sign in to comment.