forked from ivan-hc/AM
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (64 loc) · 1.65 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: "AM test suite 🧪"
on:
workflow_dispatch:
push:
branches: '**'
# paths:
# - quickget
pull_request:
branches: '**'
# paths:
# - quickget
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
_temp:
name: hello
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: hello
run: |
echo hello
printf '\tSetting up...\n\n'
echo hello
printf '\n\n\tDONE\n\n'
am:
name: Install AM 📝
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install AM
run: |
echo AM
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'
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 \
&& printf '\n\n\tInstallation DONE\n\n'
version:
needs: [am]
name: version
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: version
run: |
TERM=xterm
printf '\tShowing version...\n\n'
ls
printf '\n/usr/bin\n'
ls /usr/bin/
printf '\n/usr/local/bin\n'
ls /usr/local/bin/
am version
printf '\n\n\tDONE\n\n'