Skip to content

Ensure to run install test on Alias on macos and ubuntu #9

Ensure to run install test on Alias on macos and ubuntu

Ensure to run install test on Alias on macos and ubuntu #9

Workflow file for this run

name: brew install
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
jobs:
install:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
version:
- 'null'
- '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'
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: 'recursive'
- name: Set up Homebrew (macOS)
if: matrix.os == 'macos-latest'
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- name: Set up Homebrew (Linux)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y build-essential curl file git
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> $GITHUB_ENV
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> ~/.bashrc
- name: Ensure Homebrew is in PATH (Linux)
if: matrix.os == 'ubuntu-latest'
run: |
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> $GITHUB_ENV
- name: Install Xiond
run: |
brew tap burnt-labs/xion
brew install go
if [[ "${{ matrix.version }}" == "null" ]]; then
brew install xiond
else
brew install xiond@${{ matrix.version }}
fi