-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (37 loc) · 1.06 KB
/
katzenmint.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
name: Katzenmint
on: ["push", "pull_request"]
jobs:
build_and_test:
name: "Run tests and build artifacts"
strategy:
matrix:
os: ["ubuntu-latest", "macOS-latest"]
go: ["1.17.x", "1.18.x", "1.19.x", "1.20.x"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-go@v3
name: "Install Golang"
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v3
- name: "Test katzenmint"
run: |
cd katzenmint
make
- name: "Build katzenmint"
run: |
cd katzenmint
make build
mkdir dist
mv katzenmint dist
- if: runner.os == 'macOS'
name: "Setup katzenmint filename"
run: echo "ZIPNAME=katzenmint_darwin_${{ matrix.go }}" >> $GITHUB_ENV
- if: runner.os == 'Linux'
name: "Setup katzenmint filename"
run: echo "ZIPNAME=katzenmint_linux_${{ matrix.go }}" >> $GITHUB_ENV
- name: Archive katzenmint
uses: actions/upload-artifact@v3
with:
name: ${{ env.ZIPNAME }}
path: katzenmint/dist