Skip to content

Commit

Permalink
Merge asdf and mise CI files to make better naming scope (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick authored Feb 25, 2024
1 parent b0fb55b commit d4977eb
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 66 deletions.
50 changes: 49 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
workflow_dispatch:

jobs:
plugin-test:
asdf:
timeout-minutes: 10
strategy:
fail-fast: false
Expand Down Expand Up @@ -52,3 +52,51 @@ jobs:
with:
version: ${{ matrix.target.tool-version }}
command: ${{ matrix.target.command }}

mise:
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-13 # Intel
target:
- command: |
mise install cargo-make@latest
mise x cargo-make@latest -- makers --version
mise x cargo-make@latest -- cargo-make make --version
# Supported oldest
- command: |
mise install [email protected]
# makers does not exist
mise x [email protected] -- cargo-make make --version
include:
# They are releasing aarch64 binary since 0.36.7: https://github.com/sagiegurari/cargo-make/commit/ab3cac2261c0ba67ab6d7a277aff8252faec0b1c
- os: macos-14 # M1
target:
command: |
mise install cargo-make@latest
mise x cargo-make@latest -- makers --version
mise x cargo-make@latest -- cargo-make make --version
- os: macos-14 # M1
target:
command: |
mise install [email protected]
mise x cargo-make@latest -- makers --version
mise x cargo-make@latest -- cargo-make make --version
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v2
with:
tool_versions: |
# - This comment should have different value for each run to avoid the cache. See #75 and #77
# - avoid-cache-key: ${{ github.ref }}-${{ github.run_id }}-${{ github.run_attempt }}
# - Don't set cargo-make versions here. Keep no tools for clean room test
- name: Install plugin
run: |
mise plugins install cargo-make https://github.com/kachick/asdf-cargo-make.git#${{ github.ref }}
- name: Test
run: |
${{ matrix.target.command }}
64 changes: 0 additions & 64 deletions .github/workflows/mise.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# asdf-cargo-make

[![Build](https://github.com/kachick/asdf-cargo-make/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/kachick/asdf-cargo-make/actions/workflows/build.yml?query=branch%3Amain) [![Lint](https://github.com/kachick/asdf-cargo-make/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/kachick/asdf-cargo-make/actions/workflows/lint.yml?query=branch%3Amain) [![mise](https://github.com/kachick/asdf-cargo-make/actions/workflows/mise.yml/badge.svg?branch=main)](https://github.com/kachick/asdf-cargo-make/actions/workflows/mise.yml?query=branch%3Amain)
[![Build](https://github.com/kachick/asdf-cargo-make/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/kachick/asdf-cargo-make/actions/workflows/build.yml?query=branch%3Amain) [![Lint](https://github.com/kachick/asdf-cargo-make/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/kachick/asdf-cargo-make/actions/workflows/lint.yml?query=branch%3Amain)

[cargo-make](https://sagiegurari.github.io/cargo-make/) plugin for the [asdf version manager](https://asdf-vm.com).\
Tested also [mise](https://github.com/jdx/mise).
Expand Down

0 comments on commit d4977eb

Please sign in to comment.