Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
almirsarajcic committed Sep 17, 2024
1 parent c59cc7f commit 87bf09b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
6 changes: 4 additions & 2 deletions .github/github_workflows.ex
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,10 @@ defmodule GithubWorkflows do
run: expect_install_command
],
[
name: "Debug",
uses: "lhotari/action-upterm@v1"
# Avoid mise conflicts
name: "Remove .tool-versions file",
if: "steps.result_cache.outputs.cache-hit != 'true'",
run: "rm .tool-versions"
],
[
name: "Test the script",
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ jobs:
- name: Install expect tool
if: steps.result_cache.outputs.cache-hit != 'true'
run: sudo apt-get update && sudo apt-get install -y expect
- name: Debug
uses: lhotari/action-upterm@v1
- name: Remove .tool-versions file
if: steps.result_cache.outputs.cache-hit != 'true'
run: rm .tool-versions
- name: Test the script
if: steps.result_cache.outputs.cache-hit != 'true'
run: cd test/scripts && expect script.exp Linux.sh
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ jobs:
- name: Install expect tool
if: steps.result_cache.outputs.cache-hit != 'true'
run: sudo apt-get update && sudo apt-get install -y expect
- name: Debug
uses: lhotari/action-upterm@v1
- name: Remove .tool-versions file
if: steps.result_cache.outputs.cache-hit != 'true'
run: rm .tool-versions
- name: Test the script
if: steps.result_cache.outputs.cache-hit != 'true'
run: cd test/scripts && expect script.exp Linux.sh
Expand Down
6 changes: 2 additions & 4 deletions priv/static/Linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ function install() {
;;
"mise")
curl https://mise.run | sh
echo 'export PATH="$HOME/.local/share/mise/shims:$PATH"' >>$config_file
export PATH="$HOME/.local/share/mise/shims:$PATH"
echo 'eval "$(~/.local/bin/mise activate '$current_shell')"' >>$config_file
eval "$(~/.local/bin/mise activate $current_shell)"
;;
"Erlang")
sudo apt-get update
Expand All @@ -105,9 +105,7 @@ function install() {
sudo apt-get -y install linux-headers-generic build-essential libssl-dev libreadline-dev zlib1g-dev libcurl4-openssl-dev uuid-dev icu-devtools
mise use -g postgres@$postgres_version
postgres_bin_path="$HOME/.local/share/mise/installs/postgres/$postgres_version/bin"
export PATH="$postgres_bin_path:$PATH"
echo "export PATH=\"$postgres_bin_path:\$PATH\"" >>$config_file
mise reshim
;;
*)
echo "Invalid name argument on install"
Expand Down
4 changes: 2 additions & 2 deletions priv/static/macOS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ function install() {
;;
"mise")
curl https://mise.run | sh
echo 'export PATH="$HOME/.local/share/mise/shims:$PATH"' >>$config_file
export PATH="$HOME/.local/share/mise/shims:$PATH"
echo 'eval "$(~/.local/bin/mise activate '$current_shell')"' >>$config_file
eval "$(~/.local/bin/mise activate $current_shell)"
;;
"Erlang")
brew install autoconf [email protected] wxwidgets libxslt fop
Expand Down

0 comments on commit 87bf09b

Please sign in to comment.