forked from wal-g/wal-g
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (55 loc) · 1.56 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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