Skip to content

[mirror] Feature: Push parallelism support #65

[mirror] Feature: Push parallelism support

[mirror] Feature: Push parallelism support #65

Workflow file for this run

name: Release
on:
create:
tags:
- v*
pull_request:
branches:
- "main"
permissions:
contents: write
jobs:
release:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # To use `git describe --tags`
- name: Install dependency for linix-amd64 dist
run: sudo apt-get install -y apt-utils libbtrfs-dev file
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.22"
- name: Setup Task
uses: arduino/setup-task@v2
- name: Build and package
run: task build-and-package
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
dist/**/*.tar.gz
dist/**/*.tar.gz.sha256sum
test:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # To use `git describe --tags`
- name: Install dependency for linix-amd64 dist
run: sudo apt-get install -y apt-utils libbtrfs-dev file
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.22"
- name: Setup Task
uses: arduino/setup-task@v2
- name: Run testss
run: task test