-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: trying to push binaries reliably
- Loading branch information
Showing
3 changed files
with
5 additions
and
19 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ jobs: | |
cd shuffle_email_rules/lib/ | ||
go mod tidy | ||
mkdir -p build/${{ matrix.goos }}_${{ matrix.goarch }} | ||
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o build/${{ matrix.goos }}_${{ matrix.goarch }}/libshuffleemail_${{ matrix.goos }} -buildmode=c-shared -v | ||
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o build/libshuffleemail_{{ matrix.goos }}_{{ matrix.goarch }} -buildmode=c-shared -v | ||
env: | ||
CGO_ENABLED: 1 | ||
|
||
|
@@ -46,22 +46,8 @@ jobs: | |
cd shuffle_email_rules/lib/ | ||
git config --global user.name 'github-actions' | ||
git config --global user.email '[email protected]' | ||
branch_name="binaries-${{ github.sha }}" | ||
git checkout -b $branch_name | ||
mkdir -p binaries/${{ matrix.goos }}_${{ matrix.goarch }} | ||
mv build/${{ matrix.goos }}_${{ matrix.goarch }}/libshuffleemail_${{ matrix.goos }} binaries/${{ matrix.goos }}_${{ matrix.goarch }}/ | ||
mkdir -p binaries/ | ||
mv build/libshuffleemail_{{ matrix.goos }}_{{ matrix.goarch }} binaries/ | ||
git add binaries/ | ||
git commit -m "Add compiled binaries for ${{ matrix.goos }}_${{ matrix.goarch }}" | ||
git push origin $branch_name | ||
- name: Create pull request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: Add compiled binaries for ${{ matrix.goos }}_${{ matrix.goarch }} | ||
branch: main | ||
title: Add compiled binaries | ||
body: | | ||
This PR adds the compiled binaries for the following platform and architecture: | ||
- OS: ${{ matrix.goos }} | ||
- Architecture: ${{ matrix.goarch }} | ||
git commit -m "Add compiled binaries for ${{ matrix.goos }} - ${{ matrix.goarch }}" | ||
git push origin main |
Empty file.
Binary file not shown.