Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix installation process #8

Merged
merged 9 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/action-test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
macos:
strategy:
matrix:
os: [macos-11, macos-12, macos-latest]
os: [macos-12, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Run STK CLI installation
Expand All @@ -27,7 +27,5 @@ jobs:

- run: stk --version

- run: stk list stack

# - name: Setup upterm session
# uses: lhotari/action-upterm@v1
# uses: lhotari/action-upterm@v1
4 changes: 1 addition & 3 deletions .github/workflows/action-test-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,5 @@ jobs:

- run: stk --version

- run: stk list stack

# - name: Setup upterm session
# uses: lhotari/action-upterm@v1
# uses: lhotari/action-upterm@v1
2 changes: 0 additions & 2 deletions .github/workflows/action-test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,3 @@ jobs:
- run: stk --version
shell: bash

- run: stk list stack
shell: bash
12 changes: 11 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,17 @@ runs:
- name: Install STK CLI
run: |
if [[ "$(uname)" = "Linux" ]]; then
# Install jq, curl, zip, and git
sudo apt-get update
sudo apt-get install -y jq curl zip git
cd /tmp
curl -fsSL https://stk.stackspot.com/install.sh | bash
sudo mv /home/runner/.stk/bin/* /usr/local/bin
echo "~/.stk/bin" >> $GITHUB_PATH
elif [[ "$(uname)" = "Darwin" ]]; then
cd /tmp
curl -fsSL https://stk.stackspot.com/install.sh | bash
sudo mv /Users/runner/.stk/bin/* /usr/local/bin
echo "~/.stk/bin" >> $GITHUB_PATH
else
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
Expand All @@ -45,6 +51,10 @@ runs:
run: stk login --client-id=${{ inputs.client_id }} --client-key=${{ inputs.client_key }} --realm=${{ inputs.realm }}
shell: bash

- name: Show STK CLI version
run: stk --version
shell: bash

branding:
icon: 'terminal'
color: 'gray-dark'