Skip to content

Commit

Permalink
Add ASDF example
Browse files Browse the repository at this point in the history
  • Loading branch information
vorburger committed Feb 16, 2024
1 parent a2ed59d commit e34aaa1
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions examples.md
Original file line number Diff line number Diff line change
@@ -39,6 +39,7 @@
- [Swift, Objective-C - CocoaPods](#swift-objective-c---cocoapods)
- [Swift - Swift Package Manager](#swift---swift-package-manager)
- [Swift - Mint](#swift---mint)
- [* - ASDF](#---asdf)
- [* - Bazel](#---bazel)

## C# - NuGet
@@ -659,6 +660,35 @@ steps:
${{ runner.os }}-mint-
```

## * - ASDF

[ASDF](https://asdf-vm.com), see [#235](https://github.com/asdf-vm/actions/issues/235):

```yaml
- name: Cache ASDF
uses: actions/cache@v4
id: asdf-cache
with:
path: ~/.asdf/
key:
# Include this YAML in hashFiles so that asdf_branch changes invalidate
${{ runner.os }}-asdf-${{ hashFiles('.tool-versions',
'.github/workflows/ci.yaml') }}
restore-keys: ${{ runner.os }}-asdf-
- name: Install ASDF
uses: asdf-vm/actions/install@v3
# See https://github.com/asdf-vm/actions/issues/445
if: ${{ steps.asdf-cache.outputs.cache-hit != 'true' }}
with:
asdf_branch: v0.14.0
- name: Reshim installed ASDF tools
shell: bash
run: asdf reshim
```

## * - Bazel

[`bazelisk`](https://github.com/bazelbuild/bazelisk) does not have be to separately downloaded and installed because it's already included in GitHub's `ubuntu-latest` and `macos-latest` base images.

0 comments on commit e34aaa1

Please sign in to comment.