Skip to content

Commit 673e733

Browse files
authored
Update action.yml
1 parent 3d6979a commit 673e733

File tree

1 file changed

+40
-38
lines changed

1 file changed

+40
-38
lines changed

.github/workflows/actions/setup/action.yml

+40-38
Original file line numberDiff line numberDiff line change
@@ -11,42 +11,44 @@ inputs:
1111
runs:
1212
using: 'composite'
1313
steps:
14-
- uses: swift-actions/setup-swift@v2
15-
with:
16-
swift-version: ${{ inputs.swift }}
17-
- uses: irgaly/setup-mint@v1
18-
- uses: dcarbone/[email protected]
19-
20-
- name: "Xcode Cache"
21-
if: contains(inputs.os, 'macos')
22-
uses: irgaly/xcode-cache@v1
23-
with:
24-
key: xcode-cache-deriveddata-${{ github.workflow }}-${{ github.sha }}
25-
restore-keys: xcode-cache-deriveddata-${{ github.workflow }}-
26-
27-
# - name: "Set IgnoreFileSystemDeviceInodeChanges flag"
28-
# if: contains(inputs.os, 'macos')
29-
# shell: bash
30-
# run: defaults write com.apple.dt.XCBuild IgnoreFileSystemDeviceInodeChanges -bool YES
14+
- uses: swift-actions/setup-swift@v2
15+
with:
16+
swift-version: ${{ inputs.swift }}
17+
- uses: irgaly/setup-mint@v1
18+
with:
19+
mint-executable-directory: $HOME/.mint/bin
20+
- uses: dcarbone/[email protected]
3121

32-
- name: "Swift Package Manager Cache"
33-
uses: actions/cache@v4
34-
with:
35-
path: .build
36-
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
37-
restore-keys: |
38-
${{ runner.os }}-spm-
39-
40-
- name: "Compiling Cache"
41-
uses: actions/cache@v4
42-
with:
43-
path: ~/Library/Caches/org.swift.swiftpm/
44-
key: ${{ runner.os }}-swift-build-${{ github.ref_name }}
45-
restore-keys: |
46-
${{ runner.os }}-swift-build-
47-
48-
# Hint: Use Composite Actions
49-
# - https://stackoverflow.com/a/75735736/9801139
50-
# - https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-a-public-action-in-a-subdirectory
51-
# - https://docs.github.com/en/actions/creating-actions/creating-a-composite-action
52-
# - https://dev.to/n3wt0n/composite-actions-vs-reusable-workflows-what-is-the-difference-github-actions-11kd
22+
- name: "Xcode Cache"
23+
if: contains(inputs.os, 'macos')
24+
uses: irgaly/xcode-cache@v1
25+
with:
26+
key: xcode-cache-deriveddata-${{ github.workflow }}-${{ github.sha }}
27+
restore-keys: xcode-cache-deriveddata-${{ github.workflow }}-
28+
29+
# - name: "Set IgnoreFileSystemDeviceInodeChanges flag"
30+
# if: contains(inputs.os, 'macos')
31+
# shell: bash
32+
# run: defaults write com.apple.dt.XCBuild IgnoreFileSystemDeviceInodeChanges -bool YES
33+
34+
- name: "Swift Package Manager Cache"
35+
uses: actions/cache@v4
36+
with:
37+
path: .build
38+
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
39+
restore-keys: |
40+
${{ runner.os }}-spm-
41+
42+
- name: "Compiling Cache"
43+
uses: actions/cache@v4
44+
with:
45+
path: ~/Library/Caches/org.swift.swiftpm/
46+
key: ${{ runner.os }}-swift-build-${{ github.ref_name }}
47+
restore-keys: |
48+
${{ runner.os }}-swift-build-
49+
50+
# Hint: Use Composite Actions
51+
# - https://stackoverflow.com/a/75735736/9801139
52+
# - https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-a-public-action-in-a-subdirectory
53+
# - https://docs.github.com/en/actions/creating-actions/creating-a-composite-action
54+
# - https://dev.to/n3wt0n/composite-actions-vs-reusable-workflows-what-is-the-difference-github-actions-11kd

0 commit comments

Comments
 (0)