use cli setup action

This commit is contained in:
ConfiG 2024-06-27 16:07:45 +03:00 committed by GitHub
parent df278bfa89
commit 4ce3c7bad5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 30 deletions
.github
actions/setup-cli
workflows

View file

@ -1,27 +0,0 @@
name: Setup Geode CLI
description: Sets up Geode CLI
inputs:
host:
description: 'Host platform: win, mac or linux'
required: true
runs:
using: "composite"
steps:
- name: Download
uses: robinraju/release-downloader@v1.10
with:
repository: geode-sdk/cli
latest: true
fileName: '*-${{ inputs.host }}.zip'
tarBall: false
zipBall: false
out-file-path: "cli"
- name: Setup
shell: bash
run: |
7z x "cli/*-${{ inputs.host }}.zip" -ocli
chmod +x cli/geode
echo "$GITHUB_WORKSPACE/cli" >> $GITHUB_PATH

View file

@ -61,9 +61,7 @@ jobs:
host: linux
- name: Setup CLI
uses: ./.github/actions/setup-cli
with:
host: linux
uses: geode-sdk/cli/.github/actions/setup@main
- name: Download xwin
uses: robinraju/release-downloader@v1.10