-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (73 loc) · 2.07 KB
/
install.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: brew install
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
jobs:
install:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest]
version:
- "0.1.0"
- "0.3.2"
- "0.3.3"
- "0.3.4"
- "0.3.7"
- "0.3.8"
- "0.3.9"
- "1.0.0"
- "2.0.0"
- "3.0.0"
- "3.1.0"
- "4.0.0"
- "5.0.0"
- "6.0.0"
- "7.0.0"
- "8.0.0"
- "8.0.1"
- "9.0.0"
- "9.0.1"
- "10.0.0"
- "11.0.1"
- "null"
env:
GOVERSION: 1.23
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Homebrew
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- name: Set up Go
run: |
export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"
brew install go@${{ env.GOVERSION }}
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
sudo ln -fs $(brew --prefix go@${{ env.GOVERSION }})/libexec/bin/go /usr/bin/go
else
sudo ln -fs $(brew --prefix go@${{ env.GOVERSION }}) $(brew --prefix)/opt/go
fi
- name: Install Xiond
run: |
echo "Matrix OS: ${{ matrix.os }}"
echo "Matrix version: ${{ matrix.version }}"
echo "Matrix go version: ${{ env.GOVERSION }}"
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"
fi
brew tap burnt-labs/xion
if [[ "${{ matrix.version }}" == "null" ]]; then
echo "Installing latest version of xiond"
brew install xiond
else
echo "Installing xiond version ${{ matrix.version }}"
brew install xiond@${{ matrix.version }}
fi
xiond version --long