Skip to content

Commit

Permalink
Add versions 10 and 11 (#5)
Browse files Browse the repository at this point in the history
* change symlink

* update numbers

* quotes

* more version

* stupid linter

* typo

* fix wasmvm dwonload

* add 9.0.1 and 11.0.1, remove 11.0.0

* do not fail fast

* update default

---------

Co-authored-by: 2xburnt <[email protected]>
  • Loading branch information
ash-burnt and 2xburnt authored Sep 27, 2024
1 parent 091dc7a commit 7b84e9d
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 36 deletions.
53 changes: 27 additions & 26 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,36 @@ jobs:
install:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
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'
- "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"
- "9.0.1"
- "10.0.0"
- "11.0.1"

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'
Expand All @@ -62,19 +63,19 @@ jobs:
export LEDGER_ENABLED=false
echo "PATH: $PATH"
fi
brew tap burnt-labs/xion
brew install go
echo "Matrix OS: ${{ matrix.os }}"
echo "Matrix version: ${{ matrix.version }}"
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
1 change: 0 additions & 1 deletion Aliases/xiond

This file was deleted.

5 changes: 5 additions & 0 deletions Aliases/xiond
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require_relative "../lib/base"

class XiondAT1101 < XiondBase
init "11.0.1", "82c599c27afb7d1fc0e017c9453ce923c3590991d31de06f673a69a7a05ae695"
end
5 changes: 5 additions & 0 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require_relative "../lib/base"

class XiondAT1000 < XiondBase
init "10.0.0", "69778166e6b9fb7373891e0d6b98b5f2a6b61b6156e5008cdd09a4a3c9ab6c65"
end
5 changes: 5 additions & 0 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require_relative "../lib/base"

class XiondAT1101 < XiondBase
init "11.0.1", "82c599c27afb7d1fc0e017c9453ce923c3590991d31de06f673a69a7a05ae695"
end
5 changes: 5 additions & 0 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require_relative "../lib/base"

class XiondAT901 < XiondBase
init "9.0.1", "208b6e9f0b0c4ea5da8417d94579d78ab9ce09938f63e2932db4a44fdd7baed8"
end
16 changes: 7 additions & 9 deletions lib/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def setup_go_environment
end

def fetch_and_verify_libwasmvm
wasm_version = `go list -m -f '{{.Version}}' github.com/CosmWasm/wasmvm`.strip
wasm_version = `go list -m $(grep "github.com/CosmWasm/wasmvm" go.mod | cut -d " " -f 1) | cut -d " " -f 2`.strip
libwasmvm_suffix = determine_libwasmvm_suffix
libwasmvm_url = "https://github.com/CosmWasm/wasmvm/releases/download/#{wasm_version}/libwasmvm.#{libwasmvm_suffix}"
libwasmvm_file = "#{buildpath}/libwasmvm.#{libwasmvm_suffix}"
Expand Down Expand Up @@ -110,22 +110,20 @@ def determine_libwasmvm_suffix
else
raise "Unsupported architecture: #{Hardware::CPU.arch}"
end
elsif Hardware::CPU.intel?
"x86_64.so"
elsif Hardware::CPU.arm?
"aarch64.so"
else
if Hardware::CPU.intel?
"x86_64.so"
elsif Hardware::CPU.arm?
"aarch64.so"
else
raise "Unsupported architecture: #{Hardware::CPU.arch}"
end
raise "Unsupported architecture: #{Hardware::CPU.arch}"
end
else
raise "Unsupported OS: #{OS::NAME}"
end
end

def alpine_linux?
File.exist?('/etc/alpine-release')
File.exist?("/etc/alpine-release")
end

test do
Expand Down

0 comments on commit 7b84e9d

Please sign in to comment.