Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Fixed GitHub Action #58

Merged
merged 2 commits into from
Jun 15, 2022
Merged

Fixed GitHub Action #58

merged 2 commits into from
Jun 15, 2022

Conversation

philprime
Copy link
Contributor

The current GitHub Action is failed on me due to multiple issues.

Configuration:

name: Publish Release

on:
  push:
    tags:
    branches: [ publish-release-automation ]

jobs:
  create_release:
    name: Create Release
    runs-on: macos-latest
    steps:
      - uses: actions/checkout@v2
      - name: Create XCFramework
        uses: philprime/swift-create-xcframework@main

Encountered issues:

  • Install failed due to missing leading v in the version number.
Run philprime/swift-create-xcframework@main
Installing mint
/usr/local/bin/brew install mint
==> Downloading https://ghcr.io/v2/homebrew/core/mint/manifests/0.17.1
==> Downloading https://ghcr.io/v2/homebrew/core/mint/blobs/sha256:d09ea36619994628564fb3d7e8e71b8c368c59f68e29174fb84b9b127bd9290e
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:d09ea36619994628564fb3d7e8e71b8c368c59f68e29174fb84b9b127bd9290e?se=2021-11-17T16%3A55%3A00Z&sig=TiYL18NN4DakSQW%2BPIXsTwkjVhT%2FwRPLrF7l9A7Rar8%3D&sp=r&spr=https&sr=b&sv=2019-12-12
==> Pouring mint--0.17.1.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/mint/0.17.1: 6 files, 1.5MB
Installing unsignedapps/swift-create-xcframework
/usr/local/bin/mint install unsignedapps/swift-create-xcframework@v2.1.0
🌱 Cloning swift-create-xcframework v2.1.0
Cloning into 'github.com_unsignedapps_swift-create-xcframework'...
warning: Could not find remote branch 2.1.0 to clone.
fatal: Remote branch 2.1.0 not found in upstream origin
🌱 Encountered error during "git clone --depth 1 -b 2.1.0 https://github.com/unsignedapps/swift-create-xcframework.git github.com_unsignedapps_swift-create-xcframework". Use --verbose to see full output
🌱  Couldn't clone https://github.com/unsignedapps/swift-create-xcframework.git 2.1.0
Error: Error: The process '/usr/local/bin/mint' failed with exit code 1

--> Fixed by setting the correct version

  • Binary swift-create-xcframework can't be located
Error: Error: Unable to locate executable file: swift-create-xcframework. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.

--> Fixed by calling the binary using the mint run command

This PR fixes the issues. I tested it by using my main branch in a GitHub pipeline, where checking out was successful.

@github-actions
Copy link

This PR has been marked stale as it has not been updated in 60 days. It will be closed in one week. It can be re-opened at any time.

@github-actions github-actions bot added the Stale label Jan 17, 2022
@philprime
Copy link
Contributor Author

ping still alive

@github-actions github-actions bot removed the Stale label Jan 18, 2022
@philprime
Copy link
Contributor Author

@bok- interested in reviewing/merging this?
People are starting to fork my fork 😄

@weisunOW
Copy link
Contributor

weisunOW commented Apr 19, 2022

Hmm, you may want to contact @bok- on Twitter. See Contribution Guide|Suggest An Enhancement.

@philprime
Copy link
Contributor Author

@weisunOW looks to me like he has DMs deactivated

@bok-
Copy link
Contributor

bok- commented Jun 15, 2022

Oh damn I totally missed this one. That's what I get for relying on the GitHub inbox instead of looking at the repo directly. Thanks for fixing that @philprime.

@bok- bok- merged commit 696e13a into unsignedapps:main Jun 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants