-
Notifications
You must be signed in to change notification settings - Fork 137
39 lines (39 loc) · 1 KB
/
ci.yaml
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
name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
run-build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install build tools
run: |
sudo apt-get update
sudo apt-get install -y rpm
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Create vendor directory
run: make vendor
- name: Run benchmark
run: make bench
- name: Build binaries
run: make build
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: mieru
path: |
release/*.deb
release/*.rpm
release/*.tar.gz
release/*.zip
if-no-files-found: error
- name: Upload code coverage
uses: actions/upload-artifact@v4
with:
name: coverage
path: |
coverage.html