From cab6fcaad2e20f413811feca73c9fbabb8b2286b Mon Sep 17 00:00:00 2001 From: Elliot Murphy Date: Thu, 31 Mar 2022 21:26:29 -0400 Subject: [PATCH 1/2] Add darwin arm64 build Signed-off-by: Elliot Murphy --- .github/workflows/release.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dc2c692..fc37fc5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,9 +13,9 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - name: Generate build files - uses: thatisuday/go-cross-build@v1 + uses: thatisuday/go-cross-build@v1.0.2 with: - platforms: 'linux/amd64, linux/ppc64le, darwin/amd64, windows/amd64' + platforms: 'linux/amd64, linux/ppc64le, darwin/amd64, darwin/arm64, windows/amd64' package: 'cmd/godotenv' name: 'godotenv' compress: 'true' @@ -29,4 +29,3 @@ jobs: file: dist/* file_glob: true overwrite: true - \ No newline at end of file From c835c73fb29b4ebcc1bb9ddfd0104408518efdf0 Mon Sep 17 00:00:00 2001 From: Elliot Murphy Date: Thu, 31 Mar 2022 21:54:11 -0400 Subject: [PATCH 2/2] update url for go version Signed-off-by: Elliot Murphy --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e96faf7..8bc6712 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,9 +29,9 @@ jobs: # architecture: "s390x" - name: POWER8 architecture: "ppc64le" - + runs-on: ubuntu-latest - name: Test on ${{ matrix.arch.name }} + name: Test on ${{ matrix.arch.name }} steps: - uses: actions/checkout@v2 - uses: uraimo/run-on-arch-action@master @@ -45,7 +45,7 @@ jobs: run: | apt-get update apt-get install -q -y curl wget git - latestGo=$(curl "https://golang.org/VERSION?m=text") + latestGo=$(curl "https://go.dev/VERSION?m=text") wget "https://dl.google.com/go/${latestGo}.linux-${GOARCH}.tar.gz" rm -f $(which go) rm -rf /usr/local/go @@ -60,4 +60,4 @@ jobs: go get -v -t -d ./... go test ./... cd ./cmd/godotenv - go build -trimpath -ldflags="-w -s" -v \ No newline at end of file + go build -trimpath -ldflags="-w -s" -v