-
Notifications
You must be signed in to change notification settings - Fork 7
55 lines (45 loc) · 1.38 KB
/
cross-platform-install-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
name: Test Install Script
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test-install:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
arch: [x86_64, aarch64]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Code
uses: actions/checkout@v3
# Determine Branch Name
- name: Set Branch Name
id: branch-name
run: |
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
echo "BRANCH_NAME=${{ github.head_ref }}" >> $GITHUB_ENV
else
echo "BRANCH_NAME=${{ github.ref_name }}" >> $GITHUB_ENV
fi
# Run the merod script
- name: Test installation script
run: |
curl -s https://raw.githubusercontent.com/calimero-network/core/${{ env.BRANCH_NAME }}/scripts/install-merod.sh | bash
# Validate the binary installation
- name: Validate merod installation
run: |
which merod
merod --version
# Run the meroctl script
- name: Test installation script
run: |
curl -s https://raw.githubusercontent.com/calimero-network/core/${{ env.BRANCH_NAME }}/scripts/install-meroctl.sh | bash
# Validate the binary installation
- name: Validate meroctl installation
run: |
which meroctl
meroctl --version