Update workflow #256
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |