Skip to content

Commit

Permalink
add ci (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
oleggator authored Sep 7, 2023
1 parent deb2253 commit 1309901
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: build

on:
push:
tags:
- "v*.*.*"

env:
K6_VERSION: v0.46.0
XK6_VERSION: v0.9.2
GO_VERSION: 1.21

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [linux, darwin]
arch: [amd64]
env:
ARTIFACT_NAME: k6-${{ matrix.os }}-${{ matrix.arch }}
steps:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

- name: Checkout
uses: actions/checkout@v3

- name: Install xk6
run: go install go.k6.io/xk6/cmd/xk6@${{ env.XK6_VERSION }}

- name: Build k6 with tarantool-xk6 extension
run: |
xk6 build ${{ env.K6_VERSION }} \
--with github.com/tarantool/xk6-tarantool=. \
--output ${{ env.ARTIFACT_NAME }}
env:
CGO_ENABLED: "0"
GOFLAGS: "-tags=go_tarantool_ssl_disable,go_tarantool_call_17,go_tarantool_msgpack_v5"
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
${{ env.ARTIFACT_NAME }}

0 comments on commit 1309901

Please sign in to comment.