Skip to content

Commit

Permalink
Merge pull request #8 from stack-spot/fix/installation
Browse files Browse the repository at this point in the history
Fix installation process
  • Loading branch information
GuillaumeFalourd authored Jun 25, 2024
2 parents 3063ab8 + 7fc7b88 commit 9a8973b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
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'

0 comments on commit 9a8973b

Please sign in to comment.