Skip to content

CI (redis)

CI (redis) #27

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI (redis)
on:
push:
branches: [ master ]
tags:
- 'redis/*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
redis:
strategy:
matrix:
arch: [armv6, armv7]
distro: [buster]
runs-on: ubuntu-latest
name: redis ${{ matrix.arch }} / ${{ matrix.distro }}
steps:
- uses: actions/checkout@v2
- name: Set tag
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- uses: uraimo/run-on-arch-action@v2.1.1
name: Build redis (on arm)
id: build-redis
with:
arch: ${{ matrix.arch }}
distro: ${{ matrix.distro }}
githubToken: ${{ github.token }}
install: |
apt-get update -q -y
apt-get install -q -y wget jq curl git build-essential openssl libssl-dev libsystemd-dev
run: |
./build.sh redis ${{ matrix.arch }} ${{ steps.vars.outputs.tag }}
- uses: actions/upload-artifact@v2
with:
name: redis-${{ matrix.arch }}-${{ matrix.distro }}
path: redis-*.gz
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: redis-*.gz