Skip to content

Commit e31862c

Browse files
committed
ci: Add oasis-install
1 parent 07abd8d commit e31862c

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: install-oasis
2+
on:
3+
workflow_call:
4+
inputs:
5+
release_tag:
6+
required: false
7+
type: string
8+
# A push occurs to one of the matched branches.
9+
push:
10+
branches:
11+
- master
12+
- stable/*
13+
# Or when a pull request event occurs for a pull request against one of the
14+
# matched branches.
15+
pull_request:
16+
branches:
17+
- master
18+
- stable/*
19+
jobs:
20+
install:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Install Oasis CLI (latest or pinned)
24+
run: |
25+
#TAG="${{ inputs.release_tag }}"
26+
#echo "Input length: ${#TAG}"
27+
API="https://github.com/oasisprotocol/cli/releases/download/v0.16.0/oasis_cli_0.16.0_linux_amd64.tar.gz"
28+
echo "Fetching release from $API"
29+
curl -L "$API" -o oasis-cli.tar.gz
30+
ls
31+
tar -xvzf oasis-cli.tar.gz
32+
rm oasis-cli.tar.gz
33+
cd oasis_cli_0.16.0_linux_amd64
34+
# Make executable
35+
chmod +x oasis
36+
# Verify installation
37+
./oasis --version
38+
- name: Expose PATH
39+
run: echo "$PWD" >> "$GITHUB_PATH"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
jobs:
2+
use-oasis-cli:
3+
uses: your-org/ci/.github/workflows/install-oasis.yml@main
4+
with:
5+
release_tag: v0.16.0

0 commit comments

Comments
 (0)