Skip to content

Update workflow

Update workflow #256

Workflow file for this run

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