Skip to content

Build Shims

Build Shims #2

Workflow file for this run

name: Build Shims
on:
workflow_dispatch: {}
permissions:
contents: write
pull-requests: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.22
cache: ${{ github.ref_name == 'main' }}
- uses: crazy-max/ghaction-upx@v3
with:
install-only: true
- name: Run make shim
run: |
make shim GOARCH=amd64
make shim GOARCH=arm64
- uses: peter-evans/create-pull-request@v6
env:
COMMIT_MESSAGE: |
Update [internal/bin/shim_*](internal/bin) built by GitHub Actions Workflow "${{ github.workflow }}" run ${{ github.server_url }}/${{ github.repository }}/actions/${{ github.run_id }} for user ${{ github.actor }} from commit ${{ github.sha }}.
with:
add-paths: |
internal/bin/shim_amd64
internal/bin/shim_arm64
reviewers: |
${{ github.actor }}
title: |
Build internal/bin/shim_*
commit-message: ${{ env.COMMIT_MESSAGE }}
body: ${{ env.COMMIT_MESSAGE }}
branch: github-actions/gen/internal/bin
delete-branch: true
labels: go