Skip to content

Commit

Permalink
Merge pull request #171 from LimeChain/older-os-binaries
Browse files Browse the repository at this point in the history
Older os binaries
  • Loading branch information
georg-getz authored Sep 2, 2021
2 parents f210c5c + 2ce4ea6 commit 6c91984
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 28 deletions.
35 changes: 21 additions & 14 deletions .github/workflows/release-linux-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,29 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
name: [linux, macos]
name: [linux-18, linux-20, macos-10.14, macos-10.15, macos-11]

include:
- name: linux
os: ubuntu-latest
- name: linux-18
os: ubuntu-18.04
artifact_name: matchstick
asset_name: binary-linux
- name: macos
os: macos-latest
asset_name: binary-linux-18
- name: linux-20
os: ubuntu-20.04
artifact_name: matchstick
asset_name: binary-macos
asset_name: binary-linux-20
- name: macos-10.14
os: macos-10.14
artifact_name: matchstick
asset_name: binary-macos-10.14
- name: macos-10.15
os: macos-10.15
artifact_name: matchstick
asset_name: binary-macos-10.15
- name: macos-11
os: macos-11
artifact_name: matchstick
asset_name: binary-macos-11

steps:
- uses: actions/checkout@v2
Expand All @@ -36,12 +48,7 @@ jobs:
toolchain: stable

- name: Build
run: cargo build --release
run: cargo build --release; mv target/release/${{ matrix.artifact_name }} target/release/${{ matrix.asset_name }}

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
run: echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token; gh release upload ${GITHUB_REF##*/} target/release/${{ matrix.asset_name }}
7 changes: 1 addition & 6 deletions .github/workflows/release-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,5 @@ jobs:
run: cargo build --release

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
run: echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token; gh release upload ${GITHUB_REF##*/} target/release/${{ matrix.artifact_name }}

2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "matchstick"
version = "0.1.0"
version = "0.1.2"
authors = ["LimeChain <limechain.tech>"]
edition = "2018"

Expand Down
33 changes: 28 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,24 @@ The release binary comes in three flavours - for **MacOS**, **Linux** and **Wind

### MacOS 

If you are using macOS 11/Big Sur
```
curl -OL https://github.com/LimeChain/matchstick/releases/download/0.1.1/binary-macos &&
mv binary-macos matchstick &&
curl -OL https://github.com/LimeChain/matchstick/releases/download/0.1.2/binary-macos-11 &&
mv binary-macos-11 matchstick &&
chmod a+x matchstick
```

If you are using macOS 10.15/Catalina
```
curl -OL https://github.com/LimeChain/matchstick/releases/download/0.1.2/binary-macos-10.15 &&
mv binary-macos-10.15 matchstick &&
chmod a+x matchstick
```

If you are using macOS 10.14/Mojave
```
curl -OL https://github.com/LimeChain/matchstick/releases/download/0.1.2/binary-macos-10.14 &&
mv binary-macos-10.14 matchstick &&
chmod a+x matchstick
```

Expand All @@ -22,9 +37,17 @@ brew install postgresql

### Linux 🐧

If you are using Ubuntu 20.04/Focal Fossa
```
curl -OL https://github.com/LimeChain/matchstick/releases/download/0.1.2/binary-linux-20 &&
mv binary-linux-20 matchstick &&
chmod a+x matchstick
```

If you are using Ubuntu 18.04/Bionic Beaver
```
curl -OL https://github.com/LimeChain/matchstick/releases/download/0.1.1/binary-linux &&
mv binary-linux matchstick &&
curl -OL https://github.com/LimeChain/matchstick/releases/download/0.1.2/binary-linux-18 &&
mv binary-linux-18 matchstick &&
chmod a+x matchstick
```

Expand All @@ -36,7 +59,7 @@ sudo apt install postgresql
### Windows

```
curl -OL https://github.com/LimeChain/matchstick/releases/download/0.1.1/binary-windows &&
curl -OL https://github.com/LimeChain/matchstick/releases/download/0.1.2/binary-windows &&
move binary-windows matchstick
```

Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub fn module_from_path(path_to_wasm: &str) -> WasmInstance<Chain> {

pub fn main() {
let matches = App::new("Matchstick 🔥")
.version("0.1.0")
.version("0.1.2")
.author("Limechain <https://limechain.tech>")
.about("Unit testing framework for Subgraph development on The Graph protocol.")
.arg(
Expand Down

0 comments on commit 6c91984

Please sign in to comment.