-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (53 loc) · 1.47 KB
/
ci.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
name: CI
on:
push:
paths-ignore:
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions
- "docs/**"
- "**.md"
- "**.txt"
- "LICENSE"
pull_request:
paths-ignore:
- "docs/**"
- "**.md"
- "**.txt"
- "LICENSE"
jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
include:
- platform: ubuntu-latest
bootstrap_script: ./script/bootstrap.sh
bali_args: ./bali -p
bali_suffix: tar.gz
- platform: macos-latest
bootstrap_script: ./script/bootstrap.sh
bali_args: ./bali -p
bali_suffix: tar.gz
- platform: windows-latest
bootstrap_script: script/bootstrap.bat
bali_args: ./bali.exe -z
bali_suffix: zip
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: 'stable'
- name: Bootstrap Bali
run: ${{ matrix.bootstrap_script }}
- name: Upload release
uses: svenstaro/upload-release-action@v2
if: startsWith(github.ref, 'refs/tags/')
with:
file_glob: true
file: bali-*.${{ matrix.bali_suffix }}
tag: ${{ github.ref }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
overwrite: true