From 36fee2f55b80bbdc4c70e1c96bca6ba63b63364a Mon Sep 17 00:00:00 2001 From: Levi Bostian Date: Thu, 28 Mar 2024 07:23:09 -0500 Subject: [PATCH] ci: setup different method of installing and caching Mint 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 --- .github/actions/setup-ios/action.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/actions/setup-ios/action.yml b/.github/actions/setup-ios/action.yml index f096285..ecef58e 100644 --- a/.github/actions/setup-ios/action.yml +++ b/.github/actions/setup-ios/action.yml @@ -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 \ No newline at end of file