https://github.com/irgaly/setup-mint
A Github Action to install Mint, a swift package manager.
https://github.com/irgaly/setup-mint
github-actions ios mint swift
Last synced: about 2 months ago
JSON representation
A Github Action to install Mint, a swift package manager.
- Host: GitHub
- URL: https://github.com/irgaly/setup-mint
- Owner: irgaly
- License: other
- Created: 2022-02-18T08:51:25.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-07-02T00:13:04.000Z (3 months ago)
- Last Synced: 2025-07-03T02:49:36.381Z (3 months ago)
- Topics: github-actions, ios, mint, swift
- Language: TypeScript
- Homepage:
- Size: 6.37 MB
- Stars: 16
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# setup-mint
A Github Action to install [Mint](https://github.com/yonaskolb/Mint), a swift package manager.
This action supports:
* detect Mintfile and run mint bootstrap
* cache mint binary and swift commands that installed by mint## Usage
Add mint version to Mintfile (optional)
`Mintfile`
```
yonaskolb/mint@0.17.0
```Use this action in a workflow.
```yml
- uses: irgaly/setup-mint@v1
```## setup-mint step details
setup-mint step will do:
* Retrieve mint version from Mintfile
* setup-mint will use mint@master if mint version is not specified in Mintfile
* Install mint to /usr/local/bin/mint
* Cache mint binary for next run
* Run `mint bootstrap` to install swift commands
* Cleanup unused swift commands, that is not listed in Mintfile.
* Cache swift commands for next run## Platform
This action can be used in a macOS runner and a Linux runner.
## All Options
```yml
- uses: irgaly/setup-mint@v1
with:
# a directory contains Mintfile, default: GITHUB_WORKSPACE
mint-directory: .
# a directory where mint executable itself will be installed, default: /usr/local/bin
mint-executable-directory: /usr/local/bin
# run mint bootstrap, default: true
bootstrap: true
# add --link to bootstrap, default: true
bootstrap-link: true
# cache swift commands (~/.mint), default: true
use-cache: true
# cache key prefix for mint binary cache and swift commands cache, default: ""
cache-prefix: ""
# cleanup unused swift commands (not listed in Mintfile), default: true
clean: true
```