Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release workflow for tagged versions | |
on: | |
push: | |
# Sequence of patterns matched against refs/tags | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v0.2.19, v0.2.14a | |
env: | |
GO_VERSION: "1.22" | |
USE_BROTLI: 1 | |
USE_LZO: 1 | |
jobs: | |
release-ubuntu: | |
strategy: | |
matrix: | |
os: [ windows-latest ] | |
db: [ pg ] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install deps | |
if: startsWith(matrix.os, 'ubuntu-') | |
run: sudo apt-get install liblzo2-dev brotli libsodium-dev | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
id: go | |
- name: Setup bazel | |
uses: jwlawson/actions-setup-bazel@v2 | |
with: | |
bazel-version: '2.0.0' | |
- name: Use bazel | |
run: bazel --version | |
- name: Get dependencies windows | |
run: | | |
go get -v -t -d ./... | |
- name: Make deps | |
run: make deps | |
- name: Build WAL-G | |
run: make ${{ matrix.db }}_build | |
- name: Rename WAL-G binary | |
run: mv main/${{ matrix.db }}/wal-g wal-g-${{ matrix.db }}-${{ matrix.os }}-amd64 | |
- name: Upload WAL-G binary | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
wal-g-${{ matrix.db }}-${{ matrix.os }}-amd64 | |
- name: Debug upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: brotli | |
path: vendor/github.com/google/brotli/ | |
retention-days: 1 |