Build Shims #33
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: 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 | |
- 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@v7 | |
with: | |
add-paths: | | |
internal/bin/shim_amd64 | |
internal/bin/shim_arm64 | |
reviewers: | | |
${{ github.actor }} | |
title: | | |
Bump internal/bin/shim_* | |
commit-message: | | |
Update internal/bin/shim_* built by GitHub Actions workflow "${{ github.workflow }}" for user ${{ github.actor }} from commit ${{ github.sha }}. | |
body: | | |
Update [internal/bin/shim_*](internal/bin) built by [GitHub Actions workflow "${{ github.workflow }}"](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for user ${{ github.actor }} from commit ${{ github.sha }}. | |
branch: github-actions/gen/internal/bin | |
delete-branch: true | |
labels: go |