Implement analyze
mode for embed-code-go
.
#53
Workflow file for this run
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 and Commit Embed Code | |
on: | |
pull_request: | |
branches: [ embed-code-go ] | |
concurrency: | |
group: building | |
cancel-in-progress: true | |
jobs: | |
build: | |
if: github.actor != 'github-actions[bot]' | |
runs-on: ${{ matrix.os }} | |
strategy: | |
max-parallel: 1 | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22.1' | |
- name: Build embed_code.go for Windows | |
if: matrix.os == 'windows-latest' | |
run: | | |
cd ./embed-code-go/ | |
go build -o ./bin/embed-code-win.exe ./embed_code.go | |
- name: Build embed_code.go for Ubuntu | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
cd ./embed-code-go/ | |
go build -o ./bin/embed-code-ubuntu ./embed_code.go | |
- name: Build embed_code.go for MacOS | |
if: matrix.os == 'macos-latest' | |
run: | | |
cd ./embed-code-go/ | |
go build -o ./bin/embed-code-macos ./embed_code.go | |
- name: Commit built files | |
uses: EndBug/add-and-commit@v9 | |
with: | |
add: './embed-code-go/bin --force' | |
message: 'Build embed_code.go for ${{ matrix.os }}' | |
default_author: github_actions |