From 718a7b17ff759a1caec0deb42a5e9f04cc956ee6 Mon Sep 17 00:00:00 2001 From: Vladyslav Kuksiuk Date: Mon, 18 May 2026 13:03:50 +0200 Subject: [PATCH 1/2] Test execution rights provision. --- .github/workflows/build_binaries.yml | 26 +++++++++++++++----------- README.md | 4 ++-- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build_binaries.yml b/.github/workflows/build_binaries.yml index 1e847555..6a77b021 100644 --- a/.github/workflows/build_binaries.yml +++ b/.github/workflows/build_binaries.yml @@ -2,7 +2,7 @@ name: Build and Commit Binaries on: push: - branches: [ master ] +# branches: [ master ] paths-ignore: # Prevents the workflow from running on binaries changes. - 'bin/**' @@ -45,15 +45,19 @@ jobs: run: GOOS=windows GOARCH=amd64 go build -trimpath -o bin/embed-code-windows.exe main.go - name: Build embed_code.go for Ubuntu - run: GOOS=linux GOARCH=amd64 go build -trimpath -o bin/embed-code-linux main.go + run: > + GOOS=linux GOARCH=amd64 go build -trimpath -o bin/embed-code-linux main.go + && chmod +x bin/embed-code-linux - name: Build embed_code.go for MacOS - run: GOOS=darwin GOARCH=amd64 go build -trimpath -o bin/embed-code-macos main.go - - - name: Commit Built Files - uses: EndBug/add-and-commit@v9 - with: - add: './bin' - message: 'Update binaries.' - default_author: github_actions - push: true + run: > + GOOS=darwin GOARCH=amd64 go build -trimpath -o bin/embed-code-macos main.go + && chmod +x bin/embed-code-macos + +# - name: Commit Built Files +# uses: EndBug/add-and-commit@v9 +# with: +# add: './bin' +# message: 'Update binaries.' +# default_author: github_actions +# push: true diff --git a/README.md b/README.md index f229040c..bac9e264 100644 --- a/README.md +++ b/README.md @@ -173,9 +173,9 @@ based on the system where the binary was built. Run following command to build binaries for macOS, Windows and Ubuntu: ```bash mkdir -p bin && \ -GOOS=darwin GOARCH=amd64 go build -trimpath -o bin/embed-code-macos main.go && \ +GOOS=darwin GOARCH=amd64 go build -trimpath -o bin/embed-code-macos main.go && chmod +x bin/embed-code-macos && \ GOOS=windows GOARCH=amd64 go build -trimpath -o bin/embed-code-windows.exe main.go && \ -GOOS=linux GOARCH=amd64 go build -trimpath -o bin/embed-code-linux main.go +GOOS=linux GOARCH=amd64 go build -trimpath -o bin/embed-code-linux main.go && chmod +x bin/embed-code-linux ``` ## Development Notes From 654c2c362e599b6006863d9b28ac6c457f121ba4 Mon Sep 17 00:00:00 2001 From: Vladyslav Kuksiuk Date: Mon, 18 May 2026 13:05:14 +0200 Subject: [PATCH 2/2] Revert workflow test. --- .github/workflows/build_binaries.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build_binaries.yml b/.github/workflows/build_binaries.yml index 6a77b021..1d22f7bc 100644 --- a/.github/workflows/build_binaries.yml +++ b/.github/workflows/build_binaries.yml @@ -2,7 +2,7 @@ name: Build and Commit Binaries on: push: -# branches: [ master ] + branches: [ master ] paths-ignore: # Prevents the workflow from running on binaries changes. - 'bin/**' @@ -54,10 +54,10 @@ jobs: GOOS=darwin GOARCH=amd64 go build -trimpath -o bin/embed-code-macos main.go && chmod +x bin/embed-code-macos -# - name: Commit Built Files -# uses: EndBug/add-and-commit@v9 -# with: -# add: './bin' -# message: 'Update binaries.' -# default_author: github_actions -# push: true + - name: Commit Built Files + uses: EndBug/add-and-commit@v9 + with: + add: './bin' + message: 'Update binaries.' + default_author: github_actions + push: true