Skip to content

Commit

Permalink
feat: Add version input support
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer committed Sep 16, 2024
1 parent deda733 commit 68144f8
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 13 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,25 @@ jobs:

- name: Check Moonbit Version
run: |
moon version
moonc -v
moonrun --version
moon version --all
setup-moonbit-of-version:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
name: Setup MoonBit@${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4.1.7

- name: Setup Moonbit
uses: hustcer/setup-moonbit@develop
with:
version: 0.1.20240910+3af041b9a
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Check Moonbit Version
run: |
moon version --all
4 changes: 1 addition & 3 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ jobs:

- name: Check Moonbit Version
run: |
moon version
moonc -v
moonrun --version
moon version --all
- name: Create an Issue for Release Failure
if: ${{ failure() }}
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,4 @@ jobs:

- name: Check Moonbit Version
run: |
moon version
moonc -v
moonrun --version
moon version --all
9 changes: 5 additions & 4 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ branding:
color: 'purple'

inputs:
action:
version:
required: false
default: 'nothing'
description: 'Just a Test input, no input required currently.'
default: 'latest'
description: 'The moonbit toolchain version to setup.'

runs:
using: 'composite'
Expand All @@ -32,5 +32,6 @@ runs:
shell: nu {0}
run: |
use ${{ github.action_path }}/nu/moonbit.nu *
setup moonbit
let version = '${{inputs.version}}'
setup moonbit $version

0 comments on commit 68144f8

Please sign in to comment.