Skip to content

Commit

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

on:
push:
branches:
- ci
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:
append_body: |
k6 version: ${{ env.K6_VERSION }}
xk6 version: ${{ env.XK6_VERSION }}
files: |
${{ env.ARTIFACT_NAME }}

0 comments on commit 69b9e96

Please sign in to comment.