From 62e5a71eb07cf69dc195a4f64bea528ab4405636 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Sat, 30 Apr 2022 21:27:45 -0700 Subject: [PATCH] build darwin/amd64 and darwin/arm64 binaries. --- .github/workflows/build.yaml | 4 ++++ .github/workflows/release.yaml | 41 ++++++++++++++++++++++++++++++++++ Makefile | 2 ++ 3 files changed, 47 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 53b607f..94399cd 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -61,6 +61,10 @@ jobs: /build/scrutiny-collector-metrics-linux-arm-6 /build/scrutiny-web-linux-arm-7 /build/scrutiny-collector-metrics-linux-arm-7 + /build/scrutiny-web-darwin-arm64 + /build/scrutiny-collector-metrics-darwin-arm64 + /build/scrutiny-web-darwin-amd64 + /build/scrutiny-collector-metrics-darwin-amd64 /build/scrutiny-web-windows-4.0-amd64.exe /build/scrutiny-collector-metrics-windows-4.0-amd64.exe # /build/scrutiny-web-freebsd-amd64 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 352da1d..0b309ed 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -212,3 +212,44 @@ jobs: asset_path: /build/scrutiny-collector-metrics-windows-4.0-amd64.exe asset_name: scrutiny-collector-metrics-windows-4.0-amd64.exe asset_content_type: application/octet-stream + + - name: Release Asset - Web - darwin-arm64 + id: upload-release-asset13 + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.SCRUTINY_GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps + asset_path: /build/scrutiny-web-darwin-arm64 + asset_name: scrutiny-web-darwin-arm64 + asset_content_type: application/octet-stream + - name: Release Asset - Collector - darwin-arm64 + id: upload-release-asset14 + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.SCRUTINY_GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps + asset_path: /build/scrutiny-collector-metrics-darwin-arm64 + asset_name: scrutiny-collector-metrics-darwin-arm64 + asset_content_type: application/octet-stream + - name: Release Asset - Web - darwin-amd64 + id: upload-release-asset15 + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.SCRUTINY_GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps + asset_path: /build/scrutiny-web-darwin-amd64 + asset_name: scrutiny-web-darwin-amd64 + asset_content_type: application/octet-stream + - name: Release Asset - Collector - darwin-amd64 + id: upload-release-asset16 + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.SCRUTINY_GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps + asset_path: /build/scrutiny-collector-metrics-darwin-amd64 + asset_name: scrutiny-collector-metrics-darwin-amd64 + asset_content_type: application/octet-stream \ No newline at end of file diff --git a/Makefile b/Makefile index c22f82e..5306a77 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,8 @@ BINARY=\ linux/arm-6 \ linux/arm-7 \ linux/arm64 \ + darwin/arm64 \ + darwin/amd64 \ .PHONY: all $(BINARY)