Skip to content

Commit 8ca2a0b

Browse files
Merge pull request #21 from RedisGraph/release.standard
Standardize artifact release process
2 parents 7f7e427 + ccf7213 commit 8ca2a0b

File tree

4 files changed

+128
-1
lines changed

4 files changed

+128
-1
lines changed

.github/workflows/codeql-analysis.yml

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches:
17+
- master
18+
- main
19+
pull_request:
20+
# The branches below must be a subset of the branches above
21+
branches:
22+
- master
23+
- main
24+
schedule:
25+
- cron: '19 18 * * 4'
26+
27+
jobs:
28+
analyze:
29+
name: Analyze
30+
runs-on: ubuntu-latest
31+
permissions:
32+
actions: read
33+
contents: read
34+
security-events: write
35+
36+
strategy:
37+
fail-fast: false
38+
matrix:
39+
language: [ 'go' ]
40+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
41+
# Learn more about CodeQL language support at https://git.io/codeql-language-support
42+
43+
steps:
44+
- name: Checkout repository
45+
uses: actions/checkout@v2
46+
47+
# Initializes the CodeQL tools for scanning.
48+
- name: Initialize CodeQL
49+
uses: github/codeql-action/init@v1
50+
with:
51+
languages: ${{ matrix.language }}
52+
# If you wish to specify custom queries, you can do so here or in a config file.
53+
# By default, queries listed here will override any specified in a config file.
54+
# Prefix the list here with "+" to use these queries and those in the config file.
55+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
56+
57+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
58+
# If this step fails, then you should remove it and run the build manually (see below)
59+
- name: Autobuild
60+
uses: github/codeql-action/autobuild@v1
61+
62+
# ℹ️ Command-line programs to run using the OS shell.
63+
# 📚 https://git.io/JvXDl
64+
65+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
66+
# and modify them (or add more) to build your code if your project
67+
# uses a compiled language
68+
69+
#- run: |
70+
# make bootstrap
71+
# make release
72+
73+
- name: Perform CodeQL Analysis
74+
uses: github/codeql-action/analyze@v1

.github/workflows/publish.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# .github/workflows/github-release-publish.yml
2+
name: Publish artifacts to github release
3+
4+
on:
5+
release:
6+
types: [published]
7+
8+
jobs:
9+
releases-matrix:
10+
name: Release Go Binary
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
goos: [linux, darwin]
15+
goarch: [amd64, arm64]
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: wangyoucao577/[email protected]
19+
with:
20+
github_token: ${{ secrets.GITHUB_TOKEN }}
21+
goos: ${{ matrix.goos }}
22+
goarch: ${{ matrix.goarch }}
23+
binary_name: "redisgraph-benchmark-go"
24+
sha256sum: true
25+
asset_name: redisgraph-benchmark-go-${{ matrix.goos }}-${{ matrix.goarch }}
26+
build_command: "make build"

.github/workflows/release-drafter.yml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
# branches to consider in the event; optional, defaults to all
66
branches:
77
- master
8+
- main
89

910
jobs:
1011
update_release_draft:

README.md

+27-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,33 @@ This repo contains code to quick benchmark RedisGraph, using the official [redis
1010

1111
## Installation
1212

13-
The easiest way to get and install the redisgraph-benchmark-go Go program is to use
13+
### Download Standalone binaries ( no Golang needed )
14+
15+
If you don't have go on your machine and just want to use the produced binaries you can download the following prebuilt bins:
16+
17+
https://github.com/RedisGraph/redisgraph-benchmark-go/releases/latest
18+
19+
| OS | Arch | Link |
20+
| :--- | :---: | ---: |
21+
| Linux | amd64 (64-bit X86) | [redisgraph-benchmark-go-linux-amd64](https://github.com/RedisGraph/redisgraph-benchmark-go/releases/latest/download/redisgraph-benchmark-go-linux-amd64.tar.gz) |
22+
| Linux | arm64 (64-bit ARM) | [redisgraph-benchmark-go-linux-arm64](https://github.com/RedisGraph/redisgraph-benchmark-go/releases/latest/download/redisgraph-benchmark-go-linux-arm64.tar.gz) |
23+
| Darwin | amd64 (64-bit X86) | [redisgraph-benchmark-go-darwin-amd64](https://github.com/RedisGraph/redisgraph-benchmark-go/releases/latest/download/redisgraph-benchmark-go-darwin-amd64.tar.gz) |
24+
| Darwin | arm64 (64-bit ARM) | [redisgraph-benchmark-go-darwin-arm64](https://github.com/RedisGraph/redisgraph-benchmark-go/releases/latest/download/redisgraph-benchmark-go-darwin-arm64.tar.gz) |
25+
26+
Here's how bash script to download and try it:
27+
28+
```bash
29+
wget -c https://github.com/RedisGraph/redisgraph-benchmark-go/releases/latest/download/redisgraph-benchmark-go-$(uname -mrs | awk '{ print tolower($1) }')-$(dpkg --print-architecture).tar.gz -O - | tar -xz
30+
31+
# give it a try
32+
./redisgraph-benchmark-go --help
33+
```
34+
35+
36+
### Installation in a Golang env
37+
38+
To install the benchmark utility with a Go Env do as follow:
39+
1440
`go get` and then `go install`:
1541
```bash
1642
# Fetch this repo

0 commit comments

Comments
 (0)