Skip to content

Commit

Permalink
CI: Shared environment
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0bit committed May 5, 2024
1 parent 5488ad4 commit 73da350
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
TERM: xterm

jobs:

t:
Expand All @@ -31,24 +34,25 @@ jobs:
name: Install AM 📝
runs-on: ubuntu-22.04
steps:

- uses: actions/checkout@v4
- name: Install AM
run: |
printf '\tSetting up environment...\n\n'
export TERM=xterm
printf '\n\n\tCreating directory structure...\n\n'
mkdir -p results /usr/local/bin
printf '\n\n\tUpgrading ubuntu host...\n\n'
printf '\n\n\tUpdating host...\n\n'
sudo apt update # && sudo apt upgrade
printf '\n\n\tInstalling dependencies...\n\n'
sudo apt install -y wget curl zsync
printf '\n\n\tMaking INSTALL executable...\n\n'
chmod +x ./INSTALL
printf '\n\n\tInstalling AM...\n\n'
sudo ./INSTALL \
which am
am version
sudo ./INSTALL && \
printf '\n\n\tInstallation DONE\n\n'
am version && \
printf '\n\n\tInstallation DONE\n\n' || \
echo 'Something goes wrong!' && exit 1
version:
needs: [am]
Expand Down

0 comments on commit 73da350

Please sign in to comment.