Skip to content

Commit

Permalink
ci: setup different method of installing and caching Mint
Browse files Browse the repository at this point in the history
The current action that we use causes actions to fail early sometimes. Trying a new method based on an example: https://github.com/actions/cache/blob/main/examples.md#swift---mint

commit-id:21b09171
  • Loading branch information
levibostian committed Mar 29, 2024
1 parent 7fd3225 commit 36fee2f
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/actions/setup-ios/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,31 @@ runs:
with:
xcode-version: "15"

- name: Install package manager, Mint
run: brew install mint
shell: bash

- name: Restore Mint cache, if exists
uses: actions/cache@v4
with:
path: .mint
key: ${{ runner.os }}-mint-${{ hashFiles('**/Mintfile') }}
restore-keys: |
${{ runner.os }}-mint-
- name: Install tools in Mintfile
env:
MINT_PATH: .mint/lib
MINT_LINK_PATH: .mint/bin
run: mint bootstrap
shell: bash

- name: Install development tool, Taskfile
uses: arduino/setup-task@v2
with:
version: 3.x
repo-token: ${{ inputs.repo-token }}

- name: Install package manager, Mint
uses: irgaly/setup-mint@v1

- name: Generate code to allow project to compile
run: task codegen
shell: bash

0 comments on commit 36fee2f

Please sign in to comment.