diff --git a/.github/workflows/binary-release.yaml b/.github/workflows/binary-release.yaml index 2b201b9..1909302 100644 --- a/.github/workflows/binary-release.yaml +++ b/.github/workflows/binary-release.yaml @@ -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 'github-actions@github.com' - 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 \ No newline at end of file diff --git a/shuffle_email_rules/lib/binaries/.gitkeep b/shuffle_email_rules/lib/binaries/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/shuffle_email_rules/lib/binaries/linux_amd64/libshuffleemail_linux b/shuffle_email_rules/lib/binaries/linux_amd64/libshuffleemail_linux deleted file mode 100644 index 30944c1..0000000 Binary files a/shuffle_email_rules/lib/binaries/linux_amd64/libshuffleemail_linux and /dev/null differ